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

Commit ec42899c authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman
Browse files

USB: wwan: remove an unneeded check



We already verified that "status" was zero on this else branch.  Since
zero is not equal to -ESHUTDOWN, this condition is always true.  I
removed it and pull everything in an indent level.

This doesn't change how the code works, it's just a cleanup.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4627b1ea
Loading
Loading
Loading
Loading
+8 −11
Original line number Diff line number Diff line
@@ -307,7 +307,6 @@ static void usb_wwan_indat_callback(struct urb *urb)
		}

		/* Resubmit urb so we continue receiving */
		if (status != -ESHUTDOWN) {
		err = usb_submit_urb(urb, GFP_ATOMIC);
		if (err) {
			if (err != -EPERM) {
@@ -320,8 +319,6 @@ static void usb_wwan_indat_callback(struct urb *urb)
			usb_mark_last_busy(port->serial->dev);
		}
	}

	}
}

static void usb_wwan_outdat_callback(struct urb *urb)