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

usb: misc: yurex: 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>
上级 39acc8a8
...@@ -231,10 +231,8 @@ static int yurex_probe(struct usb_interface *interface, const struct usb_device_ ...@@ -231,10 +231,8 @@ static int yurex_probe(struct usb_interface *interface, const struct usb_device_
/* allocate control URB */ /* allocate control URB */
dev->cntl_urb = usb_alloc_urb(0, GFP_KERNEL); dev->cntl_urb = usb_alloc_urb(0, GFP_KERNEL);
if (!dev->cntl_urb) { if (!dev->cntl_urb)
dev_err(&interface->dev, "Could not allocate control URB\n");
goto error; goto error;
}
/* allocate buffer for control req */ /* allocate buffer for control req */
dev->cntl_req = kmalloc(YUREX_BUF_SIZE, GFP_KERNEL); dev->cntl_req = kmalloc(YUREX_BUF_SIZE, GFP_KERNEL);
...@@ -269,10 +267,8 @@ static int yurex_probe(struct usb_interface *interface, const struct usb_device_ ...@@ -269,10 +267,8 @@ static int yurex_probe(struct usb_interface *interface, const struct usb_device_
/* allocate interrupt URB */ /* allocate interrupt URB */
dev->urb = usb_alloc_urb(0, GFP_KERNEL); dev->urb = usb_alloc_urb(0, GFP_KERNEL);
if (!dev->urb) { if (!dev->urb)
dev_err(&interface->dev, "Could not allocate URB\n");
goto error; goto error;
}
/* allocate buffer for interrupt in */ /* allocate buffer for interrupt in */
dev->int_buffer = usb_alloc_coherent(dev->udev, YUREX_BUF_SIZE, dev->int_buffer = usb_alloc_coherent(dev->udev, YUREX_BUF_SIZE,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册