[media] media: usb: hdpvr: hdpvr-video: don't print error when allocating urb fails
authorWolfram Sang <wsa-dev@sang-engineering.com>
Thu, 11 Aug 2016 21:03:55 +0000 (18:03 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 24 Aug 2016 12:24:40 +0000 (09:24 -0300)
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>
drivers/media/usb/hdpvr/hdpvr-video.c

index 2a3a8b470555b9102b45c789156fe414415aacd9..6d43d75493ea0ea35570c8716e1de51aaf5d881b 100644 (file)
@@ -155,10 +155,8 @@ int hdpvr_alloc_buffers(struct hdpvr_device *dev, uint count)
                buf->dev = dev;
 
                urb = usb_alloc_urb(0, GFP_KERNEL);
-               if (!urb) {
-                       v4l2_err(&dev->v4l2_dev, "cannot allocate urb\n");
+               if (!urb)
                        goto exit_urb;
-               }
                buf->urb = urb;
 
                mem = usb_alloc_coherent(dev->udev, dev->bulk_in_size, GFP_KERNEL,