usb: sl811-hcd: only defined function checkdone if QUIRK2 is defined
authorColin Ian King <colin.i.king@gmail.com>
Thu, 7 Mar 2024 11:13:51 +0000 (11:13 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Mar 2024 20:58:18 +0000 (20:58 +0000)
commit12f371e2b6cb4b79c788f1f073992e115f4ca918
treed2897963f2ea8fcb31460ee7e6cdd5befb0091d9
parentdfea18989aa7beb42c2cb6344fe8787de35d9471
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>
drivers/usb/host/sl811-hcd.c