diff options
author | Joe Perches <joe@perches.com> | 2013-02-03 21:28:11 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-02-04 22:22:34 +0400 |
commit | 38673c8218a6bcaac97b0243089e33617e28f43f (patch) | |
tree | 6d591fbe322271bcc18711322bf954cc67cccfda /drivers/net/usb/usbnet.c | |
parent | b2adaca92c63b9bb8beb021d554f656e387a7648 (diff) | |
download | linux-38673c8218a6bcaac97b0243089e33617e28f43f.tar.xz |
drivers: net: usb: Remove unnecessary alloc/OOM messages
alloc failures already get standardized OOM
messages and a dump_stack.
Signed-off-by: Joe Perches <joe@perches.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 f34b2ebee815..30c1b330e983 100644 --- a/drivers/net/usb/usbnet.c +++ b/drivers/net/usb/usbnet.c @@ -1790,11 +1790,8 @@ int usbnet_write_cmd_async(struct usbnet *dev, u8 cmd, u8 reqtype, } req = kmalloc(sizeof(struct usb_ctrlrequest), GFP_ATOMIC); - if (!req) { - netdev_err(dev->net, "Failed to allocate memory for %s\n", - __func__); + if (!req) goto fail_free_buf; - } req->bRequestType = reqtype; req->bRequest = cmd; |