提交 792f94f5 编写于 作者: W Wolfram Sang 提交者: Greg Kroah-Hartman

usb: storage: usb: don't print error when allocating urb fails

kmalloc will print enough information in case of failure.
Signed-off-by: NWolfram Sang <wsa-dev@sang-engineering.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 0450ba40
...@@ -794,10 +794,8 @@ static int usb_stor_acquire_resources(struct us_data *us) ...@@ -794,10 +794,8 @@ static int usb_stor_acquire_resources(struct us_data *us)
struct task_struct *th; struct task_struct *th;
us->current_urb = usb_alloc_urb(0, GFP_KERNEL); us->current_urb = usb_alloc_urb(0, GFP_KERNEL);
if (!us->current_urb) { if (!us->current_urb)
usb_stor_dbg(us, "URB allocation failed\n");
return -ENOMEM; return -ENOMEM;
}
/* /*
* Just before we start our control thread, initialize * Just before we start our control thread, initialize
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册