[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>
This commit is contained in:
parent
fc56da7993
commit
9d849287d5
|
@ -457,10 +457,8 @@ int stk1160_alloc_isoc(struct stk1160 *dev)
|
||||||
for (i = 0; i < num_bufs; i++) {
|
for (i = 0; i < num_bufs; i++) {
|
||||||
|
|
||||||
urb = usb_alloc_urb(max_packets, GFP_KERNEL);
|
urb = usb_alloc_urb(max_packets, GFP_KERNEL);
|
||||||
if (!urb) {
|
if (!urb)
|
||||||
stk1160_err("cannot alloc urb[%d]\n", i);
|
|
||||||
goto free_i_bufs;
|
goto free_i_bufs;
|
||||||
}
|
|
||||||
dev->isoc_ctl.urb[i] = urb;
|
dev->isoc_ctl.urb[i] = urb;
|
||||||
|
|
||||||
#ifndef CONFIG_DMA_NONCOHERENT
|
#ifndef CONFIG_DMA_NONCOHERENT
|
||||||
|
|
Loading…
Reference in New Issue