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

usb: wusbcore: wa-xfer: 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>
上级 6b017b7d
...@@ -2865,10 +2865,8 @@ int wa_dti_start(struct wahc *wa) ...@@ -2865,10 +2865,8 @@ int wa_dti_start(struct wahc *wa)
goto out; goto out;
wa->dti_urb = usb_alloc_urb(0, GFP_KERNEL); wa->dti_urb = usb_alloc_urb(0, GFP_KERNEL);
if (wa->dti_urb == NULL) { if (wa->dti_urb == NULL)
dev_err(dev, "Can't allocate DTI URB\n");
goto error_dti_urb_alloc; goto error_dti_urb_alloc;
}
usb_fill_bulk_urb( usb_fill_bulk_urb(
wa->dti_urb, wa->usb_dev, wa->dti_urb, wa->usb_dev,
usb_rcvbulkpipe(wa->usb_dev, 0x80 | dti_epd->bEndpointAddress), usb_rcvbulkpipe(wa->usb_dev, 0x80 | dti_epd->bEndpointAddress),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册