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 (23:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Aug 2016 17:13:54 +0000 (19:13 +0200)
kmalloc will print enough information in case of failure.

Signed-off-by: Wolfram Sang <wsa-dev@sang-engineering.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
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,