]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/usb/serial/safe_serial.c
USB: sierra: cleanup the startup and shutdown path
[linux-2.6-omap-h63xx.git] / drivers / usb / serial / safe_serial.c
index 5a03a3fc938693b1056031dd046015d1ce9d6631..86899d55d8d818fcc0b81e7cd0a67c2d7ec19c0b 100644 (file)
@@ -211,11 +211,13 @@ static void safe_read_bulk_callback (struct urb *urb)
        unsigned char length = urb->actual_length;
        int i;
        int result;
+       int status = urb->status;
 
        dbg ("%s", __FUNCTION__);
 
-       if (urb->status) {
-               dbg ("%s - nonzero read bulk status received: %d", __FUNCTION__, urb->status);
+       if (status) {
+               dbg("%s - nonzero read bulk status received: %d",
+                   __FUNCTION__, status);
                return;
        }