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:

committed by
David S. Miller

parent
e404decb0f
commit
41de8d4cff
@@ -2751,11 +2751,8 @@ static int __devinit e100_probe(struct pci_dev *pdev,
|
||||
struct nic *nic;
|
||||
int err;
|
||||
|
||||
if (!(netdev = alloc_etherdev(sizeof(struct nic)))) {
|
||||
if (((1 << debug) - 1) & NETIF_MSG_PROBE)
|
||||
pr_err("Etherdev alloc failed, aborting\n");
|
||||
if (!(netdev = alloc_etherdev(sizeof(struct nic))))
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
netdev->netdev_ops = &e100_netdev_ops;
|
||||
SET_ETHTOOL_OPS(netdev, &e100_ethtool_ops);
|
||||
|
Reference in New Issue
Block a user