[media] media: usb: cx231xx: cx231xx-core: 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
c86bc45d41
commit
0eca51b183
|
@ -1054,8 +1054,6 @@ int cx231xx_init_isoc(struct cx231xx *dev, int max_packets,
|
||||||
for (i = 0; i < dev->video_mode.isoc_ctl.num_bufs; i++) {
|
for (i = 0; i < dev->video_mode.isoc_ctl.num_bufs; i++) {
|
||||||
urb = usb_alloc_urb(max_packets, GFP_KERNEL);
|
urb = usb_alloc_urb(max_packets, GFP_KERNEL);
|
||||||
if (!urb) {
|
if (!urb) {
|
||||||
dev_err(dev->dev,
|
|
||||||
"cannot alloc isoc_ctl.urb %i\n", i);
|
|
||||||
cx231xx_uninit_isoc(dev);
|
cx231xx_uninit_isoc(dev);
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
|
@ -1191,8 +1189,6 @@ int cx231xx_init_bulk(struct cx231xx *dev, int max_packets,
|
||||||
for (i = 0; i < dev->video_mode.bulk_ctl.num_bufs; i++) {
|
for (i = 0; i < dev->video_mode.bulk_ctl.num_bufs; i++) {
|
||||||
urb = usb_alloc_urb(0, GFP_KERNEL);
|
urb = usb_alloc_urb(0, GFP_KERNEL);
|
||||||
if (!urb) {
|
if (!urb) {
|
||||||
dev_err(dev->dev,
|
|
||||||
"cannot alloc bulk_ctl.urb %i\n", i);
|
|
||||||
cx231xx_uninit_bulk(dev);
|
cx231xx_uninit_bulk(dev);
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue