aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/navman.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2007-06-15 18:44:13 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2007-07-12 19:34:35 -0400
commit9965d612631c62c2018973080fa03396f49fce59 (patch)
tree8f993d33a164a2ddc81fd0b782163d0779aa327e /drivers/usb/serial/navman.c
parent0643c72435bcd36980314de825773989d4dca97f (diff)
USB: serial: navman: clean up urb->status usage
This done in anticipation of removal of urb->status, which will make that patch easier to review and apply in the future. Cc: <linux-usb-devel@lists.sourceforge.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/serial/navman.c')
-rw-r--r--drivers/usb/serial/navman.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/usb/serial/navman.c b/drivers/usb/serial/navman.c
index 90701111d746..7f337c9aeb5f 100644
--- a/drivers/usb/serial/navman.c
+++ b/drivers/usb/serial/navman.c
@@ -37,9 +37,10 @@ static void navman_read_int_callback(struct urb *urb)
37 struct usb_serial_port *port = urb->context; 37 struct usb_serial_port *port = urb->context;
38 unsigned char *data = urb->transfer_buffer; 38 unsigned char *data = urb->transfer_buffer;
39 struct tty_struct *tty; 39 struct tty_struct *tty;
40 int status = urb->status;
40 int result; 41 int result;
41 42
42 switch (urb->status) { 43 switch (status) {
43 case 0: 44 case 0:
44 /* success */ 45 /* success */
45 break; 46 break;
@@ -48,11 +49,11 @@ static void navman_read_int_callback(struct urb *urb)
48 case -ESHUTDOWN: 49 case -ESHUTDOWN:
49 /* this urb is terminated, clean up */ 50 /* this urb is terminated, clean up */
50 dbg("%s - urb shutting down with status: %d", 51 dbg("%s - urb shutting down with status: %d",
51 __FUNCTION__, urb->status); 52 __FUNCTION__, status);
52 return; 53 return;
53 default: 54 default:
54 dbg("%s - nonzero urb status received: %d", 55 dbg("%s - nonzero urb status received: %d",
55 __FUNCTION__, urb->status); 56 __FUNCTION__, status);
56 goto exit; 57 goto exit;
57 } 58 }
58 59