]> err.no Git - linux-2.6/commitdiff
Input: iforce - fix 'unused variable' warning
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 30 Aug 2007 04:04:33 +0000 (00:04 -0400)
committerDmitry Torokhov <dtor@insightbb.com>
Thu, 30 Aug 2007 04:04:33 +0000 (00:04 -0400)
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>
drivers/input/joystick/iforce/iforce-packets.c

index 3154ccd7400098d1110fca740ed8156bb2a7eb32..45c4939ced75ef45228075d8d5c9784d7bb5a486 100644 (file)
@@ -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: