提交 6b017b7d 编写于 作者: W Wolfram Sang 提交者: Greg Kroah-Hartman

usb: wusbcore: wa-nep: don't print error when allocating urb fails

kmalloc will print enough information in case of failure.
Signed-off-by: NWolfram Sang <wsa-dev@sang-engineering.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 7190c178
...@@ -277,10 +277,8 @@ int wa_nep_create(struct wahc *wa, struct usb_interface *iface) ...@@ -277,10 +277,8 @@ int wa_nep_create(struct wahc *wa, struct usb_interface *iface)
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)
dev_err(dev, "Unable to allocate notification URB\n");
goto error_urb_alloc; goto error_urb_alloc;
}
usb_fill_int_urb(wa->nep_urb, usb_dev, usb_fill_int_urb(wa->nep_urb, usb_dev,
usb_rcvintpipe(usb_dev, epd->bEndpointAddress), usb_rcvintpipe(usb_dev, epd->bEndpointAddress),
wa->nep_buffer, wa->nep_buffer_size, wa->nep_buffer, wa->nep_buffer_size,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册