2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-27 06:34:11 +08:00

usb: misc: lvstest: 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:
Wolfram Sang 2016-08-11 23:14:42 +02:00 committed by Greg Kroah-Hartman
parent a131f41f5b
commit da4e20ffce

View File

@ -395,10 +395,8 @@ static int lvs_rh_probe(struct usb_interface *intf,
/* submit urb to poll interrupt endpoint */ /* submit urb to poll interrupt endpoint */
lvs->urb = usb_alloc_urb(0, GFP_KERNEL); lvs->urb = usb_alloc_urb(0, GFP_KERNEL);
if (!lvs->urb) { if (!lvs->urb)
dev_err(&intf->dev, "couldn't allocate lvs urb\n");
return -ENOMEM; return -ENOMEM;
}
INIT_WORK(&lvs->rh_work, lvs_rh_work); INIT_WORK(&lvs->rh_work, lvs_rh_work);