Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: xpad - remove unused function

There are two definitions of xpad_identify_controller(), one is used
when CONFIG_JOYSTICK_XPAD_LEDS is set, but the other one is empty
and never used, and we get a gcc warning about it:

drivers/input/joystick/xpad.c:1210:13: warning: 'xpad_identify_controller' defined but not used [-Wunused-function]

This removes the second definition.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: cae705baa40b ("Input: xpad - re-send LED command on present event")
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Arnd Bergmann and committed by
Dmitry Torokhov
a6ed4a18 b26a95d4

-1
-1
drivers/input/joystick/xpad.c
··· 1207 1207 #else 1208 1208 static int xpad_led_probe(struct usb_xpad *xpad) { return 0; } 1209 1209 static void xpad_led_disconnect(struct usb_xpad *xpad) { } 1210 - static void xpad_identify_controller(struct usb_xpad *xpad) { } 1211 1210 #endif 1212 1211 1213 1212 static int xpad_start_input(struct usb_xpad *xpad)