From: Wolfram Sang Date: Thu, 11 Aug 2016 21:04:00 +0000 (-0300) Subject: [media] media: usb: stkwebcam: stk-webcam: don't print error when allocating urb... X-Git-Tag: v4.14-rc1~332^2~1859 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2685b1d1d1cdd005c0c553632c4bf48d8b483722;p=platform%2Fkernel%2Flinux-rpi.git [media] media: usb: stkwebcam: stk-webcam: don't print error when allocating urb fails kmalloc will print enough information in case of failure. Signed-off-by: Wolfram Sang Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/usb/stkwebcam/stk-webcam.c b/drivers/media/usb/stkwebcam/stk-webcam.c index c21c4c0..db200c9 100644 --- a/drivers/media/usb/stkwebcam/stk-webcam.c +++ b/drivers/media/usb/stkwebcam/stk-webcam.c @@ -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");