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

index 52ac4391582c49a01830fdcf36e7546bb0187c07..c23bf73a68ea97ffc6f1f10b6c4d8bd157c7d5d2 100644 (file)
@@ -2303,11 +2303,8 @@ int usbvision_init_isoc(struct usb_usbvision *usbvision)
                struct urb *urb;
 
                urb = usb_alloc_urb(USBVISION_URB_FRAMES, GFP_KERNEL);
-               if (urb == NULL) {
-                       dev_err(&usbvision->dev->dev,
-                               "%s: usb_alloc_urb() failed\n", __func__);
+               if (urb == NULL)
                        return -ENOMEM;
-               }
                usbvision->sbuf[buf_idx].urb = urb;
                usbvision->sbuf[buf_idx].data =
                        usb_alloc_coherent(usbvision->dev,