[media] media: usb: dvb-usb: dib0700_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
95bc112d79
commit
abbde78f1d
@ -783,10 +783,8 @@ int dib0700_rc_setup(struct dvb_usb_device *d, struct usb_interface *intf)
|
|||||||
/* Starting in firmware 1.20, the RC info is provided on a bulk pipe */
|
/* Starting in firmware 1.20, the RC info is provided on a bulk pipe */
|
||||||
|
|
||||||
purb = usb_alloc_urb(0, GFP_KERNEL);
|
purb = usb_alloc_urb(0, GFP_KERNEL);
|
||||||
if (purb == NULL) {
|
if (purb == NULL)
|
||||||
err("rc usb alloc urb failed");
|
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
|
||||||
|
|
||||||
purb->transfer_buffer = kzalloc(RC_MSG_SIZE_V1_20, GFP_KERNEL);
|
purb->transfer_buffer = kzalloc(RC_MSG_SIZE_V1_20, GFP_KERNEL);
|
||||||
if (purb->transfer_buffer == NULL) {
|
if (purb->transfer_buffer == NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user