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>
This commit is contained in:

committed by
David S. Miller

parent
b2adaca92c
commit
38673c8218
@@ -1116,13 +1116,11 @@ static int smsc95xx_bind(struct usbnet *dev, struct usb_interface *intf)
|
||||
}
|
||||
|
||||
dev->data[0] = (unsigned long)kzalloc(sizeof(struct smsc95xx_priv),
|
||||
GFP_KERNEL);
|
||||
GFP_KERNEL);
|
||||
|
||||
pdata = (struct smsc95xx_priv *)(dev->data[0]);
|
||||
if (!pdata) {
|
||||
netdev_warn(dev->net, "Unable to allocate struct smsc95xx_priv\n");
|
||||
if (!pdata)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
spin_lock_init(&pdata->mac_cr_lock);
|
||||
|
||||
|
Reference in New Issue
Block a user