net: usb: usbnet: 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: David S. Miller <davem@davemloft.net>
This commit is contained in:
Wolfram Sang 2016-08-11 23:05:28 +02:00 committed by David S. Miller
parent d7c4e84e34
commit ef6cd1301e
1 changed files with 1 additions and 4 deletions

View File

@ -2062,11 +2062,8 @@ int usbnet_write_cmd_async(struct usbnet *dev, u8 cmd, u8 reqtype,
cmd, reqtype, value, index, size);
urb = usb_alloc_urb(0, GFP_ATOMIC);
if (!urb) {
netdev_err(dev->net, "Error allocating URB in"
" %s!\n", __func__);
if (!urb)
goto fail;
}
if (data) {
buf = kmemdup(data, size, GFP_ATOMIC);