forked from Minki/linux
[media] media: usb: hdpvr: hdpvr-video: don't print error when allocating urb fails
kmalloc will print enough information in case of failure. Signed-off-by: Wolfram Sang <wsa-dev@sang-engineering.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
1e55ef9689
commit
551f9d4655
@ -155,10 +155,8 @@ int hdpvr_alloc_buffers(struct hdpvr_device *dev, uint count)
|
|||||||
buf->dev = dev;
|
buf->dev = dev;
|
||||||
|
|
||||||
urb = usb_alloc_urb(0, GFP_KERNEL);
|
urb = usb_alloc_urb(0, GFP_KERNEL);
|
||||||
if (!urb) {
|
if (!urb)
|
||||||
v4l2_err(&dev->v4l2_dev, "cannot allocate urb\n");
|
|
||||||
goto exit_urb;
|
goto exit_urb;
|
||||||
}
|
|
||||||
buf->urb = urb;
|
buf->urb = urb;
|
||||||
|
|
||||||
mem = usb_alloc_coherent(dev->udev, dev->bulk_in_size, GFP_KERNEL,
|
mem = usb_alloc_coherent(dev->udev, dev->bulk_in_size, GFP_KERNEL,
|
||||||
|
Loading…
Reference in New Issue
Block a user