]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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>
Sat, 13 Apr 2024 11:01:46 +0000 (13:01 +0200)
commiteb7e92dbdc7834d97063954eb645a55700eb3da5
tree88782bd1dc31b609276030f81a2ce902a8864a7b
parente0db818c087195071fe0c58fc7232fb7e43137e2
usb: sl811-hcd: only defined function checkdone if QUIRK2 is defined

[ Upstream commit 12f371e2b6cb4b79c788f1f073992e115f4ca918 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/host/sl811-hcd.c