summaryrefslogtreecommitdiffstats
path: root/drivers/usb/misc
diff options
context:
space:
mode:
authorWolfram Sang <wsa-dev@sang-engineering.com>2016-08-11 23:14:42 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-08-15 15:54:27 +0200
commitda4e20ffcedfce5774dae3c3b653cd22b370c72b (patch)
tree3b0eec33232a6b878e17ddaa467b8fbce546fe6f /drivers/usb/misc
parenta131f41f5ba60e7a05fcbce304bc894845a4995a (diff)
downloadlinux-da4e20ffcedfce5774dae3c3b653cd22b370c72b.tar.gz
linux-da4e20ffcedfce5774dae3c3b653cd22b370c72b.tar.bz2
linux-da4e20ffcedfce5774dae3c3b653cd22b370c72b.zip
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>
Diffstat (limited to 'drivers/usb/misc')
-rw-r--r--drivers/usb/misc/lvstest.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/misc/lvstest.c b/drivers/usb/misc/lvstest.c
index a985cadc0b76..9c49334c622d 100644
--- a/drivers/usb/misc/lvstest.c
+++ b/drivers/usb/misc/lvstest.c
@@ -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);