diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2007-08-30 06:04:33 +0200 |
---|---|---|
committer | Dmitry Torokhov <dtor@insightbb.com> | 2007-08-30 06:04:33 +0200 |
commit | d9f03831e7dc743ae25863c59f38884f5989ab39 (patch) | |
tree | b2e7f998a8d4947e79e151ee020e96b27eefa67c /drivers/input | |
parent | Input: i8042 - fix retrun value of i8042_aux_test_irq (diff) | |
download | linux-d9f03831e7dc743ae25863c59f38884f5989ab39.tar.xz linux-d9f03831e7dc743ae25863c59f38884f5989ab39.zip |
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>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/joystick/iforce/iforce-packets.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/input/joystick/iforce/iforce-packets.c b/drivers/input/joystick/iforce/iforce-packets.c index 3154ccd74000..45c4939ced75 100644 --- a/drivers/input/joystick/iforce/iforce-packets.c +++ b/drivers/input/joystick/iforce/iforce-packets.c @@ -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 status; - switch (iforce->bus) { - case IFORCE_USB: - + case IFORCE_USB: { #ifdef CONFIG_JOYSTICK_IFORCE_USB + int status; + iforce->cr.bRequest = packet[0]; iforce->ctrl->dev = iforce->usbdev; @@ -273,6 +272,7 @@ int iforce_get_id_packet(struct iforce *iforce, char *packet) #else dbg("iforce_get_id_packet: iforce->bus = USB!"); #endif + } break; case IFORCE_232: |