Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

usb: sl811-hcd: only defined function checkdone if QUIRK2 is defined

Function checkdone is only required if QUIRK2 is defined, so add
appropriate #if / #endif around the function.

Cleans up clang scan build warning:
drivers/usb/host/sl811-hcd.c:588:18: warning: unused function
'checkdone' [-Wunused-function]

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20240307111351.1982382-1-colin.i.king@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Colin Ian King and committed by
Greg Kroah-Hartman
12f371e2 dfea1898

+2
+2
drivers/usb/host/sl811-hcd.c
··· 585 585 finish_request(sl811, ep, urb, urbstat); 586 586 } 587 587 588 + #ifdef QUIRK2 588 589 static inline u8 checkdone(struct sl811 *sl811) 589 590 { 590 591 u8 ctl; ··· 617 616 #endif 618 617 return irqstat; 619 618 } 619 + #endif 620 620 621 621 static irqreturn_t sl811h_irq(struct usb_hcd *hcd) 622 622 {