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

Commit 51b36173 authored by Hans de Goede's avatar Hans de Goede Committed by Greg Kroah-Hartman
Browse files

uas: Do not log urb status error on cancellation



Check for both type of cancellation codes for sense and data urbs.

Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e5e55819
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -318,10 +318,7 @@ static void uas_stat_cmplt(struct urb *urb)
		goto out;

	if (urb->status) {
		if (urb->status == -ENOENT) {
			dev_err(&urb->dev->dev, "stat urb: killed, stream %d\n",
				urb->stream_id);
		} else {
		if (urb->status != -ENOENT && urb->status != -ECONNRESET) {
			dev_err(&urb->dev->dev, "stat urb: status %d\n",
				urb->status);
		}
@@ -428,7 +425,7 @@ static void uas_data_cmplt(struct urb *urb)
	}

	if (urb->status) {
		if (urb->status != -ECONNRESET) {
		if (urb->status != -ENOENT && urb->status != -ECONNRESET) {
			uas_log_cmd_state(cmnd, __func__);
			scmd_printk(KERN_ERR, cmnd,
				"data cmplt err %d stream %d\n",