Commit:     3a75ab943688d765cdb60b33f3f9db72c752c521
Parent:     461d696aeeae294ad22dfcaae462d1757f955778
Author:     Greg Kroah-Hartman <[EMAIL PROTECTED]>
AuthorDate: Fri Jun 15 15:44:13 2007 -0700
Committer:  Greg Kroah-Hartman <[EMAIL PROTECTED]>
CommitDate: Thu Jul 12 16:34:36 2007 -0700

    USB: serial: safe_serial: 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: Stuart Lynne <[EMAIL PROTECTED]>
    Cc: Tom Rushworth <[EMAIL PROTECTED]>
    Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
 drivers/usb/serial/safe_serial.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/serial/safe_serial.c b/drivers/usb/serial/safe_serial.c
index 5a03a3f..86899d5 100644
--- a/drivers/usb/serial/safe_serial.c
+++ b/drivers/usb/serial/safe_serial.c
@@ -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);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to