aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/oki-semi
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2012-01-29 08:47:52 -0500
committerDavid S. Miller <davem@davemloft.net>2012-01-31 16:20:48 -0500
commit41de8d4cff21a2e81e3d9ff66f5f7c903f9c3ab1 (patch)
treec441a6911ff802233473f31fa29a985e690a816a /drivers/net/ethernet/oki-semi
parente404decb0fb017be80552adee894b35307b6c7b4 (diff)
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>
Diffstat (limited to 'drivers/net/ethernet/oki-semi')
-rw-r--r--drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c b/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c
index 0217991fede7..bdbec7e04a4c 100644
--- a/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c
+++ b/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c
@@ -2419,8 +2419,6 @@ static int pch_gbe_probe(struct pci_dev *pdev,
2419 netdev = alloc_etherdev((int)sizeof(struct pch_gbe_adapter)); 2419 netdev = alloc_etherdev((int)sizeof(struct pch_gbe_adapter));
2420 if (!netdev) { 2420 if (!netdev) {
2421 ret = -ENOMEM; 2421 ret = -ENOMEM;
2422 dev_err(&pdev->dev,
2423 "ERR: Can't allocate and set up an Ethernet device\n");
2424 goto err_release_pci; 2422 goto err_release_pci;
2425 } 2423 }
2426 SET_NETDEV_DEV(netdev, &pdev->dev); 2424 SET_NETDEV_DEV(netdev, &pdev->dev);