Input: iforce - fix 'unused variable' warning
drivers/input/joystick/iforce/iforce-packets.c: In function `iforce_get_id_packet': drivers/input/joystick/iforce/iforce-packets.c:249: warning: unused variable `status' Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
Родитель
e3758b2ab6
Коммит
d9f03831e7
|
@ -246,13 +246,12 @@ void iforce_process_packet(struct iforce *iforce, u16 cmd, unsigned char *data)
|
||||||
|
|
||||||
int iforce_get_id_packet(struct iforce *iforce, char *packet)
|
int iforce_get_id_packet(struct iforce *iforce, char *packet)
|
||||||
{
|
{
|
||||||
int status;
|
|
||||||
|
|
||||||
switch (iforce->bus) {
|
switch (iforce->bus) {
|
||||||
|
|
||||||
case IFORCE_USB:
|
case IFORCE_USB: {
|
||||||
|
|
||||||
#ifdef CONFIG_JOYSTICK_IFORCE_USB
|
#ifdef CONFIG_JOYSTICK_IFORCE_USB
|
||||||
|
int status;
|
||||||
|
|
||||||
iforce->cr.bRequest = packet[0];
|
iforce->cr.bRequest = packet[0];
|
||||||
iforce->ctrl->dev = iforce->usbdev;
|
iforce->ctrl->dev = iforce->usbdev;
|
||||||
|
|
||||||
|
@ -273,6 +272,7 @@ int iforce_get_id_packet(struct iforce *iforce, char *packet)
|
||||||
#else
|
#else
|
||||||
dbg("iforce_get_id_packet: iforce->bus = USB!");
|
dbg("iforce_get_id_packet: iforce->bus = USB!");
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case IFORCE_232:
|
case IFORCE_232:
|
||||||
|
|
Загрузка…
Ссылка в новой задаче