diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2007-06-15 18:44:13 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-07-12 19:34:36 -0400 |
commit | 3a75ab943688d765cdb60b33f3f9db72c752c521 (patch) | |
tree | e018dcb2e0f200d057dbd3ce9a33ca08a2cdf8f2 /drivers/usb/serial/safe_serial.c | |
parent | 461d696aeeae294ad22dfcaae462d1757f955778 (diff) |
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: <linux-usb-devel@lists.sourceforge.net>
Cc: Stuart Lynne <sl@lineo.com>
Cc: Tom Rushworth <tbr@lineo.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/serial/safe_serial.c')
-rw-r--r-- | 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 5a03a3fc9386..86899d55d8d8 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) | |||
211 | unsigned char length = urb->actual_length; | 211 | unsigned char length = urb->actual_length; |
212 | int i; | 212 | int i; |
213 | int result; | 213 | int result; |
214 | int status = urb->status; | ||
214 | 215 | ||
215 | dbg ("%s", __FUNCTION__); | 216 | dbg ("%s", __FUNCTION__); |
216 | 217 | ||
217 | if (urb->status) { | 218 | if (status) { |
218 | dbg ("%s - nonzero read bulk status received: %d", __FUNCTION__, urb->status); | 219 | dbg("%s - nonzero read bulk status received: %d", |
220 | __FUNCTION__, status); | ||
219 | return; | 221 | return; |
220 | } | 222 | } |
221 | 223 | ||