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

usb: misc: lvstest: 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>
上级 a131f41f
...@@ -395,10 +395,8 @@ static int lvs_rh_probe(struct usb_interface *intf, ...@@ -395,10 +395,8 @@ static int lvs_rh_probe(struct usb_interface *intf,
/* submit urb to poll interrupt endpoint */ /* submit urb to poll interrupt endpoint */
lvs->urb = usb_alloc_urb(0, GFP_KERNEL); lvs->urb = usb_alloc_urb(0, GFP_KERNEL);
if (!lvs->urb) { if (!lvs->urb)
dev_err(&intf->dev, "couldn't allocate lvs urb\n");
return -ENOMEM; return -ENOMEM;
}
INIT_WORK(&lvs->rh_work, lvs_rh_work); INIT_WORK(&lvs->rh_work, lvs_rh_work);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册