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

index 6ecb0b48423f3d411cb0874c9c159727241eb3bd..ce8ebbe395a62073498f07268229a825d633715a 100644 (file)
@@ -457,10 +457,8 @@ int stk1160_alloc_isoc(struct stk1160 *dev)
        for (i = 0; i < num_bufs; i++) {
 
                urb = usb_alloc_urb(max_packets, GFP_KERNEL);
-               if (!urb) {
-                       stk1160_err("cannot alloc urb[%d]\n", i);
+               if (!urb)
                        goto free_i_bufs;
-               }
                dev->isoc_ctl.urb[i] = urb;
 
 #ifndef CONFIG_DMA_NONCOHERENT