summaryrefslogtreecommitdiff
path: root/drivers/net/usb/usbnet.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-02-03 21:28:11 +0400
committerDavid S. Miller <davem@davemloft.net>2013-02-04 22:22:34 +0400
commit38673c8218a6bcaac97b0243089e33617e28f43f (patch)
tree6d591fbe322271bcc18711322bf954cc67cccfda /drivers/net/usb/usbnet.c
parentb2adaca92c63b9bb8beb021d554f656e387a7648 (diff)
downloadlinux-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.c5
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;