Commit 9a513c90 authored by Oliver Neukum's avatar Oliver Neukum Committed by Greg Kroah-Hartman

uas: fix comparison for error code

A typo broke the comparison.

Fixes: cbeef22f ("usb: uas: unconditionally bring back host after reset")
Signed-off-by: default avatarOliver Neukum <oneukum@suse.com>
CC: stable@kernel.org
Acked-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4a3928c6
...@@ -1076,7 +1076,7 @@ static int uas_post_reset(struct usb_interface *intf) ...@@ -1076,7 +1076,7 @@ static int uas_post_reset(struct usb_interface *intf)
return 0; return 0;
err = uas_configure_endpoints(devinfo); err = uas_configure_endpoints(devinfo);
if (err && err != ENODEV) if (err && err != -ENODEV)
shost_printk(KERN_ERR, shost, shost_printk(KERN_ERR, shost,
"%s: alloc streams error %d after reset", "%s: alloc streams error %d after reset",
__func__, err); __func__, err);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment