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

index c21c4c004f9778a50809c27d0cba39ca9596d7f7..db200c9d796d3683d23b9279db73d6eb625420da 100644 (file)
@@ -452,10 +452,8 @@ static int stk_prepare_iso(struct stk_camera *dev)
                        STK_ERROR("isobuf data already allocated\n");
                if (dev->isobufs[i].urb == NULL) {
                        urb = usb_alloc_urb(ISO_FRAMES_PER_DESC, GFP_KERNEL);
-                       if (urb == NULL) {
-                               STK_ERROR("Failed to allocate URB %d\n", i);
+                       if (urb == NULL)
                                goto isobufs_out;
-                       }
                        dev->isobufs[i].urb = urb;
                } else {
                        STK_ERROR("Killing URB\n");