diff options
author | Wolfram Sang <wsa-dev@sang-engineering.com> | 2016-08-11 17:14:42 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-08-15 09:52:40 -0400 |
commit | c6a4c9fcfd2a1a6d14e46180d19e565aa2fbf362 (patch) | |
tree | d572424bf42c6f03762f2cae54543192e85211ed /drivers/uwb | |
parent | c1da59dad0ebd3f9bd238f3fff82b1f7ffda7829 (diff) |
uwb: hwa-rc: 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/uwb')
-rw-r--r-- | drivers/uwb/hwa-rc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/uwb/hwa-rc.c b/drivers/uwb/hwa-rc.c index 0257f35cfb9d..0aa6c3c29d17 100644 --- a/drivers/uwb/hwa-rc.c +++ b/drivers/uwb/hwa-rc.c | |||
@@ -701,10 +701,8 @@ static int hwarc_neep_init(struct uwb_rc *rc) | |||
701 | goto error_rd_buffer; | 701 | goto error_rd_buffer; |
702 | } | 702 | } |
703 | hwarc->neep_urb = usb_alloc_urb(0, GFP_KERNEL); | 703 | hwarc->neep_urb = usb_alloc_urb(0, GFP_KERNEL); |
704 | if (hwarc->neep_urb == NULL) { | 704 | if (hwarc->neep_urb == NULL) |
705 | dev_err(dev, "Unable to allocate notification URB\n"); | ||
706 | goto error_urb_alloc; | 705 | goto error_urb_alloc; |
707 | } | ||
708 | usb_fill_int_urb(hwarc->neep_urb, usb_dev, | 706 | usb_fill_int_urb(hwarc->neep_urb, usb_dev, |
709 | usb_rcvintpipe(usb_dev, epd->bEndpointAddress), | 707 | usb_rcvintpipe(usb_dev, epd->bEndpointAddress), |
710 | hwarc->rd_buffer, PAGE_SIZE, | 708 | hwarc->rd_buffer, PAGE_SIZE, |