diff options
author | Wolfram Sang | 2016-08-11 23:05:28 +0200 |
---|---|---|
committer | David S. Miller | 2016-08-13 14:53:40 -0700 |
commit | ef6cd1301e06e0a5de24938b92c5859d5021ea5d (patch) | |
tree | 07bd8bcef0956f05993441f2a36798dd977f9729 /drivers | |
parent | d7c4e84e34813d9d2cbb9ec72fb8cbcbb71340c0 (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/usb/usbnet.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c index 3bfb59209326..d5071e364d40 100644 --- a/drivers/net/usb/usbnet.c +++ b/drivers/net/usb/usbnet.c @@ -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); |