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>
This commit is contained in:
parent
461d696aee
commit
3a75ab9436
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue