summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorWolfram Sang <wsa-dev@sang-engineering.com>2016-08-11 23:14:49 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-08-15 15:54:27 +0200
commit6b017b7d1094415ea935d056abe18fe136adca71 (patch)
tree122440436bf2d2735076c103b3a8bc94a84682eb /drivers
parent7190c178e65b111379faa7c3b453b7e54f078872 (diff)
downloadtalos-obmc-linux-6b017b7d1094415ea935d056abe18fe136adca71.tar.gz
talos-obmc-linux-6b017b7d1094415ea935d056abe18fe136adca71.zip
usb: wusbcore: wa-nep: 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')
-rw-r--r--drivers/usb/wusbcore/wa-nep.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/wusbcore/wa-nep.c b/drivers/usb/wusbcore/wa-nep.c
index 60a10d21947d..6140100ad50e 100644
--- a/drivers/usb/wusbcore/wa-nep.c
+++ b/drivers/usb/wusbcore/wa-nep.c
@@ -277,10 +277,8 @@ int wa_nep_create(struct wahc *wa, struct usb_interface *iface)
goto error_nep_buffer;
}
wa->nep_urb = usb_alloc_urb(0, GFP_KERNEL);
- if (wa->nep_urb == NULL) {
- dev_err(dev, "Unable to allocate notification URB\n");
+ if (wa->nep_urb == NULL)
goto error_urb_alloc;
- }
usb_fill_int_urb(wa->nep_urb, usb_dev,
usb_rcvintpipe(usb_dev, epd->bEndpointAddress),
wa->nep_buffer, wa->nep_buffer_size,
OpenPOWER on IntegriCloud