[media] staging: media: lirc: lirc_imon: 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: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
Wolfram Sang 2016-08-11 18:23:39 -03:00 committed by Mauro Carvalho Chehab
parent a53d2f299d
commit c07c8ba844
1 changed files with 2 additions and 7 deletions

View File

@ -797,16 +797,11 @@ static int imon_probe(struct usb_interface *interface,
goto free_rbuf; goto free_rbuf;
} }
rx_urb = usb_alloc_urb(0, GFP_KERNEL); rx_urb = usb_alloc_urb(0, GFP_KERNEL);
if (!rx_urb) { if (!rx_urb)
dev_err(dev, "%s: usb_alloc_urb failed for IR urb\n", __func__);
goto free_lirc_buf; goto free_lirc_buf;
}
tx_urb = usb_alloc_urb(0, GFP_KERNEL); tx_urb = usb_alloc_urb(0, GFP_KERNEL);
if (!tx_urb) { if (!tx_urb)
dev_err(dev, "%s: usb_alloc_urb failed for display urb\n",
__func__);
goto free_rx_urb; goto free_rx_urb;
}
mutex_init(&context->ctx_lock); mutex_init(&context->ctx_lock);
context->vfd_proto_6p = vfd_proto_6p; context->vfd_proto_6p = vfd_proto_6p;