HID: nintendo: Remove unused function
Subsystems (2)
PATCH 1/1 HID: nintendo: Remove unused function
The function are defined in the hid-nintendo.c file, but not called elsewhere, so delete the unused function.
drivers/hid/hid-nintendo.c:697:20: warning: unused function 'joycon_device_has_usb'.
Reported-by Abaci Robot <[email protected]>
Signed-off-by Jiapeng Chong <[email protected]>
--- drivers/hid/hid-nintendo.c | 9 --------- 1 file changed, 9 deletions(-)
drivers/hid/hid-nintendo.c +0 -9
@@ -694,15 +694,6 @@ static inline bool joycon_device_is_n64con(struct joycon_ctlr *ctlr)return ctlr->hdev->product ==USB_DEVICE_ID_NINTENDO_N64CON ; } -static inline bool joycon_device_has_usb (struct joycon_ctlr *ctlr) -{ -return joycon_device_is_procon (ctlr) || -joycon_device_is_chrggrip (ctlr) || -joycon_device_is_snescon (ctlr) || -joycon_device_is_gencon (ctlr) || -joycon_device_is_n64con (ctlr); -} -/* * Controller type helpers *
Signature · 1 line
2.20.1.7.g153144c
Quoted 8 lines · Jiapeng Chong
The function are defined in the
hid-nintendo.cfile, but not called elsewhere, so delete the unused function.
drivers/hid/hid-nintendo.c:697:20: warning: unused function 'joycon_device_has_usb'.Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>
Applied, thanks.
Signature · 2 lines
Jiri Kosina SUSE Labs