summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/stk1160
diff options
context:
space:
mode:
authorWolfram Sang2016-08-11 23:03:59 +0200
committerMauro Carvalho Chehab2016-08-24 14:26:01 +0200
commit9d849287d512ffbe01cdd0da9c4c1e468f7f72d8 (patch)
tree70bc63fae16309c18b400ed1b0df0f3b8a3076a1 /drivers/media/usb/stk1160
parent[media] media: usb: s2255: s2255drv: don't print error when allocating urb fails (diff)
downloadkernel-qcow2-linux-9d849287d512ffbe01cdd0da9c4c1e468f7f72d8.tar.gz
kernel-qcow2-linux-9d849287d512ffbe01cdd0da9c4c1e468f7f72d8.tar.xz
kernel-qcow2-linux-9d849287d512ffbe01cdd0da9c4c1e468f7f72d8.zip
[media] 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 <wsa-dev@sang-engineering.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/usb/stk1160')
-rw-r--r--drivers/media/usb/stk1160/stk1160-video.c4
1 files changed, 1 insertions, 3 deletions
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