Commit 84f11ce5 authored by Wolfram Sang's avatar Wolfram Sang Committed by Greg Kroah-Hartman

usb: wusbcore: wa-nep: don't print on ENOMEM

All kmalloc-based functions print enough information on failures.
Signed-off-by: default avatarWolfram Sang <wsa-dev@sang-engineering.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d919523f
...@@ -271,11 +271,8 @@ int wa_nep_create(struct wahc *wa, struct usb_interface *iface) ...@@ -271,11 +271,8 @@ int wa_nep_create(struct wahc *wa, struct usb_interface *iface)
epd = &iface->cur_altsetting->endpoint[0].desc; epd = &iface->cur_altsetting->endpoint[0].desc;
wa->nep_buffer_size = 1024; wa->nep_buffer_size = 1024;
wa->nep_buffer = kmalloc(wa->nep_buffer_size, GFP_KERNEL); wa->nep_buffer = kmalloc(wa->nep_buffer_size, GFP_KERNEL);
if (wa->nep_buffer == NULL) { if (!wa->nep_buffer)
dev_err(dev,
"Unable to allocate notification's read buffer\n");
goto error_nep_buffer; goto error_nep_buffer;
}
wa->nep_urb = usb_alloc_urb(0, GFP_KERNEL); wa->nep_urb = usb_alloc_urb(0, GFP_KERNEL);
if (wa->nep_urb == NULL) if (wa->nep_urb == NULL)
goto error_urb_alloc; goto error_urb_alloc;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment