Skip to content

Commit

Permalink
usb: fix uninitialized variable warning in keyspan_pda
Browse files Browse the repository at this point in the history
This fixes the compiler warning.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Benny Halevy authored and Greg Kroah-Hartman committed Jul 21, 2008
1 parent 397f519 commit 3b36a8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/serial/keyspan_pda.c
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ static int keyspan_pda_get_modem_info(struct usb_serial *serial,
3, /* get pins */
USB_TYPE_VENDOR|USB_RECIP_INTERFACE|USB_DIR_IN,
0, 0, &data, 1, 2000);
if (rc > 0)
if (rc >= 0)
*value = data;
return rc;
}
Expand Down

0 comments on commit 3b36a8f

Please sign in to comment.