HID: nintendo: Remove unused function
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Sun, 7 Apr 2024 02:11:00 +0000 (10:11 +0800)
committerJiri Kosina <jkosina@suse.com>
Fri, 12 Apr 2024 11:40:32 +0000 (13:40 +0200)
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 <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=8704
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-nintendo.c

index e311b092e758fc0fd330f3c917494921e3a85cc8..b0d6c6db522dbe3798f31b4b89938780b19681af 100644 (file)
@@ -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
  *