Skip to content

Commit

Permalink
Input: iforce - fix 'unused variable' warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrew Morton authored and Dmitry Torokhov committed Aug 30, 2007
1 parent e3758b2 commit d9f0383
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/input/joystick/iforce/iforce-packets.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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:
Expand Down

0 comments on commit d9f0383

Please sign in to comment.