diff options
author | Wolfram Sang <wsa-dev@sang-engineering.com> | 2016-08-11 23:05:28 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-13 23:53:40 +0200 |
commit | ef6cd1301e06e0a5de24938b92c5859d5021ea5d (patch) | |
tree | 07bd8bcef0956f05993441f2a36798dd977f9729 /drivers/net/usb/usbnet.c | |
parent | net: usb: lan78xx: don't print error when allocating urb fails (diff) | |
download | linux-ef6cd1301e06e0a5de24938b92c5859d5021ea5d.tar.xz linux-ef6cd1301e06e0a5de24938b92c5859d5021ea5d.zip |
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/net/usb/usbnet.c')
-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); |