Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3a75ab94 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

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: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 461d696a
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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;
	}