mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-07 00:59:06 +00:00
staging: media: lirc: lirc_sasem: 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f11055b9ae
commit
86b368dbfd
1 changed files with 0 additions and 5 deletions
|
@ -758,17 +758,12 @@ static int sasem_probe(struct usb_interface *interface,
|
||||||
}
|
}
|
||||||
rx_urb = usb_alloc_urb(0, GFP_KERNEL);
|
rx_urb = usb_alloc_urb(0, GFP_KERNEL);
|
||||||
if (!rx_urb) {
|
if (!rx_urb) {
|
||||||
dev_err(&interface->dev,
|
|
||||||
"%s: usb_alloc_urb failed for IR urb\n", __func__);
|
|
||||||
alloc_status = 5;
|
alloc_status = 5;
|
||||||
goto alloc_status_switch;
|
goto alloc_status_switch;
|
||||||
}
|
}
|
||||||
if (vfd_ep_found) {
|
if (vfd_ep_found) {
|
||||||
tx_urb = usb_alloc_urb(0, GFP_KERNEL);
|
tx_urb = usb_alloc_urb(0, GFP_KERNEL);
|
||||||
if (!tx_urb) {
|
if (!tx_urb) {
|
||||||
dev_err(&interface->dev,
|
|
||||||
"%s: usb_alloc_urb failed for VFD urb",
|
|
||||||
__func__);
|
|
||||||
alloc_status = 6;
|
alloc_status = 6;
|
||||||
goto alloc_status_switch;
|
goto alloc_status_switch;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue