提交 9a513c90 编写于 作者: O Oliver Neukum 提交者: 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: NOliver Neukum <oneukum@suse.com>
CC: stable@kernel.org
Acked-by: NHans de Goede <hdegoede@redhat.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 4a3928c6
......@@ -1076,7 +1076,7 @@ static int uas_post_reset(struct usb_interface *intf)
return 0;
err = uas_configure_endpoints(devinfo);
if (err && err != ENODEV)
if (err && err != -ENODEV)
shost_printk(KERN_ERR, shost,
"%s: alloc streams error %d after reset",
__func__, err);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册