From: Wolfram Sang Date: Thu, 11 Aug 2016 21:03:59 +0000 (+0200) Subject: media: usb: stk1160: stk1160-video: don't print error when allocating urb fails X-Git-Tag: v4.9-rc1~146^2~106 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ec70abd1fa1095d4a389914a5fcb99d7dc2a1375;p=karo-tx-linux.git media: usb: stk1160: stk1160-video: 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: Greg Kroah-Hartman --- diff --git a/drivers/media/usb/stk1160/stk1160-video.c b/drivers/media/usb/stk1160/stk1160-video.c index 6ecb0b48423f..ce8ebbe395a6 100644 --- a/drivers/media/usb/stk1160/stk1160-video.c +++ b/drivers/media/usb/stk1160/stk1160-video.c @@ -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