drivers/net: Remove alloc_etherdev error messages
alloc_etherdev has a generic OOM/unable to alloc message. Remove the duplicative messages after alloc_etherdev calls. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e404decb0f
commit
41de8d4cff
86 changed files with 63 additions and 192 deletions
|
@ -11133,10 +11133,8 @@ static int __devinit bnx2x_init_one(struct pci_dev *pdev,
|
|||
|
||||
/* dev zeroed in init_etherdev */
|
||||
dev = alloc_etherdev_mqs(sizeof(*bp), tx_count, rx_count);
|
||||
if (!dev) {
|
||||
dev_err(&pdev->dev, "Cannot allocate net device\n");
|
||||
if (!dev)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
bp = netdev_priv(dev);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue