Commit aab74635 authored by Wolfram Sang's avatar Wolfram Sang Committed by Mauro Carvalho Chehab

[media] media: usb: usbvision: usbvision-core: don't print error when allocating urb fails

kmalloc will print enough information in case of failure.
Signed-off-by: default avatarWolfram Sang <wsa-dev@sang-engineering.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 7c240e8c
...@@ -2303,11 +2303,8 @@ int usbvision_init_isoc(struct usb_usbvision *usbvision) ...@@ -2303,11 +2303,8 @@ int usbvision_init_isoc(struct usb_usbvision *usbvision)
struct urb *urb; struct urb *urb;
urb = usb_alloc_urb(USBVISION_URB_FRAMES, GFP_KERNEL); urb = usb_alloc_urb(USBVISION_URB_FRAMES, GFP_KERNEL);
if (urb == NULL) { if (urb == NULL)
dev_err(&usbvision->dev->dev,
"%s: usb_alloc_urb() failed\n", __func__);
return -ENOMEM; return -ENOMEM;
}
usbvision->sbuf[buf_idx].urb = urb; usbvision->sbuf[buf_idx].urb = urb;
usbvision->sbuf[buf_idx].data = usbvision->sbuf[buf_idx].data =
usb_alloc_coherent(usbvision->dev, usb_alloc_coherent(usbvision->dev,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment