]> git.baikalelectronics.ru Git - kernel.git/commit
Input: xpad - remove unused function
authorArnd Bergmann <arnd@arndb.de>
Wed, 27 Jan 2016 23:42:25 +0000 (15:42 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 27 Jan 2016 23:55:06 +0000 (15:55 -0800)
commitc39fdd075b29fa8c79db298a8591aa68d5ccf3f0
tree8c9c3d8ea829f03047cd5384dce5c50f12eba450
parenteef729b9fcd2e2170c1ec9a6370de3f040920a96
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: 2ff38148eb98 ("Input: xpad - re-send LED command on present event")
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/joystick/xpad.c