From: Greg Kroah-Hartman Date: Fri, 15 Jun 2007 22:44:13 +0000 (-0700) Subject: USB: serial: navman: clean up urb->status usage X-Git-Tag: v2.6.23-rc1~1083^2~55 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=9965d612631c62c2018973080fa03396f49fce59;p=linux-2.6-omap-h63xx.git 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: Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/serial/navman.c b/drivers/usb/serial/navman.c index 90701111d74..7f337c9aeb5 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) struct usb_serial_port *port = urb->context; unsigned char *data = urb->transfer_buffer; struct tty_struct *tty; + int status = urb->status; int result; - switch (urb->status) { + switch (status) { case 0: /* success */ break; @@ -48,11 +49,11 @@ static void navman_read_int_callback(struct urb *urb) case -ESHUTDOWN: /* this urb is terminated, clean up */ dbg("%s - urb shutting down with status: %d", - __FUNCTION__, urb->status); + __FUNCTION__, status); return; default: dbg("%s - nonzero urb status received: %d", - __FUNCTION__, urb->status); + __FUNCTION__, status); goto exit; }