Skip to content

Commit f6e0f53

Browse files
Jiapeng ChongJiri Kosina
authored andcommitted
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]> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=8704 Signed-off-by: Jiapeng Chong <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 28ba601 commit f6e0f53

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

drivers/hid/hid-nintendo.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -694,15 +694,6 @@ static inline bool joycon_device_is_n64con(struct joycon_ctlr *ctlr)
694694
return ctlr->hdev->product == USB_DEVICE_ID_NINTENDO_N64CON;
695695
}
696696

697-
static inline bool joycon_device_has_usb(struct joycon_ctlr *ctlr)
698-
{
699-
return joycon_device_is_procon(ctlr) ||
700-
joycon_device_is_chrggrip(ctlr) ||
701-
joycon_device_is_snescon(ctlr) ||
702-
joycon_device_is_gencon(ctlr) ||
703-
joycon_device_is_n64con(ctlr);
704-
}
705-
706697
/*
707698
* Controller type helpers
708699
*

0 commit comments

Comments
 (0)