diff options
author | Joe Perches <joe@perches.com> | 2013-02-03 18:28:11 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-02-04 19:22:34 +0100 |
commit | 38673c8218a6bcaac97b0243089e33617e28f43f (patch) | |
tree | 6d591fbe322271bcc18711322bf954cc67cccfda /drivers/net/usb/smsc75xx.c | |
parent | ethernet: Remove unnecessary alloc/OOM messages, alloc cleanups (diff) | |
download | linux-38673c8218a6bcaac97b0243089e33617e28f43f.tar.xz linux-38673c8218a6bcaac97b0243089e33617e28f43f.zip |
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/smsc75xx.c')
-rw-r--r-- | drivers/net/usb/smsc75xx.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/usb/smsc75xx.c b/drivers/net/usb/smsc75xx.c index 251a3354a4b0..9abe51710f22 100644 --- a/drivers/net/usb/smsc75xx.c +++ b/drivers/net/usb/smsc75xx.c @@ -1393,13 +1393,11 @@ static int smsc75xx_bind(struct usbnet *dev, struct usb_interface *intf) } dev->data[0] = (unsigned long)kzalloc(sizeof(struct smsc75xx_priv), - GFP_KERNEL); + GFP_KERNEL); pdata = (struct smsc75xx_priv *)(dev->data[0]); - if (!pdata) { - netdev_warn(dev->net, "Unable to allocate smsc75xx_priv\n"); + if (!pdata) return -ENOMEM; - } pdata->dev = dev; |