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:
@@ -211,11 +211,13 @@ static void safe_read_bulk_callback (struct urb *urb)
|
|||||||
unsigned char length = urb->actual_length;
|
unsigned char length = urb->actual_length;
|
||||||
int i;
|
int i;
|
||||||
int result;
|
int result;
|
||||||
|
int status = urb->status;
|
||||||
|
|
||||||
dbg ("%s", __FUNCTION__);
|
dbg ("%s", __FUNCTION__);
|
||||||
|
|
||||||
if (urb->status) {
|
if (status) {
|
||||||
dbg ("%s - nonzero read bulk status received: %d", __FUNCTION__, urb->status);
|
dbg("%s - nonzero read bulk status received: %d",
|
||||||
|
__FUNCTION__, status);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user