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

usb: misc: appledisplay: 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>
上级 71574a55
...@@ -261,7 +261,6 @@ static int appledisplay_probe(struct usb_interface *iface, ...@@ -261,7 +261,6 @@ static int appledisplay_probe(struct usb_interface *iface,
pdata->urb = usb_alloc_urb(0, GFP_KERNEL); pdata->urb = usb_alloc_urb(0, GFP_KERNEL);
if (!pdata->urb) { if (!pdata->urb) {
retval = -ENOMEM; retval = -ENOMEM;
dev_err(&iface->dev, "Allocating URB failed\n");
goto error; goto error;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册