mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00: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:
parent
a131f41f5b
commit
da4e20ffce
1 changed files with 1 additions and 3 deletions
|
@ -395,10 +395,8 @@ static int lvs_rh_probe(struct usb_interface *intf,
|
|||
|
||||
/* submit urb to poll interrupt endpoint */
|
||||
lvs->urb = usb_alloc_urb(0, GFP_KERNEL);
|
||||
if (!lvs->urb) {
|
||||
dev_err(&intf->dev, "couldn't allocate lvs urb\n");
|
||||
if (!lvs->urb)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
INIT_WORK(&lvs->rh_work, lvs_rh_work);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue