mirror of
https://github.com/torvalds/linux.git
synced 2024-12-29 06:12:08 +00:00
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>
This commit is contained in:
parent
c1da59dad0
commit
c6a4c9fcfd
@ -701,10 +701,8 @@ static int hwarc_neep_init(struct uwb_rc *rc)
|
|||||||
goto error_rd_buffer;
|
goto error_rd_buffer;
|
||||||
}
|
}
|
||||||
hwarc->neep_urb = usb_alloc_urb(0, GFP_KERNEL);
|
hwarc->neep_urb = usb_alloc_urb(0, GFP_KERNEL);
|
||||||
if (hwarc->neep_urb == NULL) {
|
if (hwarc->neep_urb == NULL)
|
||||||
dev_err(dev, "Unable to allocate notification URB\n");
|
|
||||||
goto error_urb_alloc;
|
goto error_urb_alloc;
|
||||||
}
|
|
||||||
usb_fill_int_urb(hwarc->neep_urb, usb_dev,
|
usb_fill_int_urb(hwarc->neep_urb, usb_dev,
|
||||||
usb_rcvintpipe(usb_dev, epd->bEndpointAddress),
|
usb_rcvintpipe(usb_dev, epd->bEndpointAddress),
|
||||||
hwarc->rd_buffer, PAGE_SIZE,
|
hwarc->rd_buffer, PAGE_SIZE,
|
||||||
|
Loading…
Reference in New Issue
Block a user