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

usb: usb-skeleton: 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>
上级 792f94f5
...@@ -532,11 +532,8 @@ static int skel_probe(struct usb_interface *interface, ...@@ -532,11 +532,8 @@ static int skel_probe(struct usb_interface *interface,
goto error; goto error;
} }
dev->bulk_in_urb = usb_alloc_urb(0, GFP_KERNEL); dev->bulk_in_urb = usb_alloc_urb(0, GFP_KERNEL);
if (!dev->bulk_in_urb) { if (!dev->bulk_in_urb)
dev_err(&interface->dev,
"Could not allocate bulk_in_urb\n");
goto error; goto error;
}
} }
if (!dev->bulk_out_endpointAddr && if (!dev->bulk_out_endpointAddr &&
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册