mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-28 21:33:52 +00:00
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>
This commit is contained in:
parent
dfea18989a
commit
12f371e2b6
1 changed files with 2 additions and 0 deletions
|
@ -585,6 +585,7 @@ done(struct sl811 *sl811, struct sl811h_ep *ep, u8 bank)
|
||||||
finish_request(sl811, ep, urb, urbstat);
|
finish_request(sl811, ep, urb, urbstat);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef QUIRK2
|
||||||
static inline u8 checkdone(struct sl811 *sl811)
|
static inline u8 checkdone(struct sl811 *sl811)
|
||||||
{
|
{
|
||||||
u8 ctl;
|
u8 ctl;
|
||||||
|
@ -616,6 +617,7 @@ static inline u8 checkdone(struct sl811 *sl811)
|
||||||
#endif
|
#endif
|
||||||
return irqstat;
|
return irqstat;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static irqreturn_t sl811h_irq(struct usb_hcd *hcd)
|
static irqreturn_t sl811h_irq(struct usb_hcd *hcd)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue