drivers/net: Remove alloc_etherdev error messages
authorJoe Perches <joe@perches.com>
Sun, 29 Jan 2012 13:47:52 +0000 (13:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 31 Jan 2012 21:20:48 +0000 (16:20 -0500)
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>
86 files changed:
drivers/net/ethernet/3com/3c59x.c
drivers/net/ethernet/adaptec/starfire.c
drivers/net/ethernet/adi/bfin_mac.c
drivers/net/ethernet/alteon/acenic.c
drivers/net/ethernet/amd/amd8111e.c
drivers/net/ethernet/amd/au1000_eth.c
drivers/net/ethernet/amd/declance.c
drivers/net/ethernet/amd/pcnet32.c
drivers/net/ethernet/apple/bmac.c
drivers/net/ethernet/apple/mace.c
drivers/net/ethernet/atheros/atl1c/atl1c_main.c
drivers/net/ethernet/atheros/atl1e/atl1e_main.c
drivers/net/ethernet/broadcom/b44.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
drivers/net/ethernet/broadcom/sb1250-mac.c
drivers/net/ethernet/broadcom/tg3.c
drivers/net/ethernet/brocade/bna/bnad.c
drivers/net/ethernet/cadence/macb.c
drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c
drivers/net/ethernet/cisco/enic/enic_main.c
drivers/net/ethernet/davicom/dm9000.c
drivers/net/ethernet/dec/tulip/tulip_core.c
drivers/net/ethernet/dec/tulip/xircom_cb.c
drivers/net/ethernet/dnet.c
drivers/net/ethernet/ethoc.c
drivers/net/ethernet/hp/hp100.c
drivers/net/ethernet/ibm/ehea/ehea_main.c
drivers/net/ethernet/ibm/emac/core.c
drivers/net/ethernet/ibm/iseries_veth.c
drivers/net/ethernet/icplus/ipg.c
drivers/net/ethernet/intel/e100.c
drivers/net/ethernet/jme.c
drivers/net/ethernet/korina.c
drivers/net/ethernet/lantiq_etop.c
drivers/net/ethernet/marvell/skge.c
drivers/net/ethernet/marvell/sky2.c
drivers/net/ethernet/mellanox/mlx4/en_netdev.c
drivers/net/ethernet/micrel/ks8695net.c
drivers/net/ethernet/micrel/ks8851.c
drivers/net/ethernet/microchip/enc28j60.c
drivers/net/ethernet/myricom/myri10ge/myri10ge.c
drivers/net/ethernet/neterion/s2io.c
drivers/net/ethernet/netx-eth.c
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c
drivers/net/ethernet/packetengines/yellowfin.c
drivers/net/ethernet/pasemi/pasemi_mac.c
drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c
drivers/net/ethernet/qlogic/qla3xxx.c
drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
drivers/net/ethernet/rdc/r6040.c
drivers/net/ethernet/realtek/8139too.c
drivers/net/ethernet/realtek/r8169.c
drivers/net/ethernet/renesas/sh_eth.c
drivers/net/ethernet/s6gmac.c
drivers/net/ethernet/seeq/sgiseeq.c
drivers/net/ethernet/sis/sis190.c
drivers/net/ethernet/smsc/epic100.c
drivers/net/ethernet/smsc/smc911x.c
drivers/net/ethernet/smsc/smc91x.c
drivers/net/ethernet/smsc/smsc911x.c
drivers/net/ethernet/smsc/smsc9420.c
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
drivers/net/ethernet/sun/cassini.c
drivers/net/ethernet/sun/niu.c
drivers/net/ethernet/sun/sungem.c
drivers/net/ethernet/sun/sunvnet.c
drivers/net/ethernet/tehuti/tehuti.c
drivers/net/ethernet/ti/cpmac.c
drivers/net/ethernet/ti/davinci_emac.c
drivers/net/ethernet/ti/tlan.c
drivers/net/ethernet/toshiba/tc35815.c
drivers/net/ethernet/tundra/tsi108_eth.c
drivers/net/ethernet/via/via-rhine.c
drivers/net/ethernet/via/via-velocity.c
drivers/net/ethernet/xilinx/ll_temac_main.c
drivers/net/ethernet/xilinx/xilinx_axienet_main.c
drivers/net/ethernet/xilinx/xilinx_emaclite.c
drivers/net/plip/plip.c
drivers/net/rionet.c
drivers/net/usb/pegasus.c
drivers/net/usb/rtl8150.c
drivers/net/usb/usbnet.c
drivers/net/vmxnet3/vmxnet3_drv.c
drivers/net/wireless/atmel.c
drivers/net/wireless/ipw2x00/libipw_module.c
drivers/net/xen-netfront.c

index 8153a3e0a1a4457a5c156508d7c605362bc76e37..dc51d9218e6dadf51a3330a5f8ef6bc3628447a9 100644 (file)
@@ -1121,10 +1121,9 @@ static int __devinit vortex_probe1(struct device *gendev,
 
        dev = alloc_etherdev(sizeof(*vp));
        retval = -ENOMEM;
-       if (!dev) {
-               pr_err(PFX "unable to allocate etherdev, aborting\n");
+       if (!dev)
                goto out;
-       }
+
        SET_NETDEV_DEV(dev, gendev);
        vp = netdev_priv(dev);
 
index cb4f38a17f2006aa5fa4971c7a260d6d5957fff1..11fc2eccb0fdb18c641caaebcc91bebb8d3945dc 100644 (file)
@@ -686,10 +686,9 @@ static int __devinit starfire_init_one(struct pci_dev *pdev,
        }
 
        dev = alloc_etherdev(sizeof(*np));
-       if (!dev) {
-               printk(KERN_ERR DRV_NAME " %d: cannot alloc etherdev, aborting\n", card_idx);
+       if (!dev)
                return -ENOMEM;
-       }
+
        SET_NETDEV_DEV(dev, &pdev->dev);
 
        irq = pdev->irq;
index d812a103e032788ee6b3456dc6bb29e33c0decdb..525a9768bb54ffd11dd287261c100107d8572ef0 100644 (file)
@@ -1467,10 +1467,8 @@ static int __devinit bfin_mac_probe(struct platform_device *pdev)
        int rc;
 
        ndev = alloc_etherdev(sizeof(struct bfin_mac_local));
-       if (!ndev) {
-               dev_err(&pdev->dev, "Cannot allocate net device!\n");
+       if (!ndev)
                return -ENOMEM;
-       }
 
        SET_NETDEV_DEV(ndev, &pdev->dev);
        platform_set_drvdata(pdev, ndev);
index f872748ab4e6f7ad64343d714032e524024ad193..6c3b1c0adaa0e589563f080ca62e8eb4f69f0907 100644 (file)
@@ -463,11 +463,8 @@ static int __devinit acenic_probe_one(struct pci_dev *pdev,
        static int boards_found;
 
        dev = alloc_etherdev(sizeof(struct ace_private));
-       if (dev == NULL) {
-               printk(KERN_ERR "acenic: Unable to allocate "
-                      "net_device structure!\n");
+       if (dev == NULL)
                return -ENOMEM;
-       }
 
        SET_NETDEV_DEV(dev, &pdev->dev);
 
index 33e0a8c20f6b42db39ae423fbed5e30e9c100656..b8306a589558603c9ce40e50973fe5d50a725e95 100644 (file)
@@ -1859,7 +1859,6 @@ static int __devinit amd8111e_probe_one(struct pci_dev *pdev,
 
        dev = alloc_etherdev(sizeof(struct amd8111e_priv));
        if (!dev) {
-               printk(KERN_ERR "amd8111e: Etherdev alloc failed, exiting.\n");
                err = -ENOMEM;
                goto err_free_reg;
        }
index 8b95dd314253ab4e36bbbcb01b09a7c35d8e8585..a81c871aeacfe1b0c8162c87757d735cfa2babf6 100644 (file)
@@ -1077,7 +1077,6 @@ static int __devinit au1000_probe(struct platform_device *pdev)
 
        dev = alloc_etherdev(sizeof(struct au1000_private));
        if (!dev) {
-               dev_err(&pdev->dev, "alloc_etherdev failed\n");
                err = -ENOMEM;
                goto err_alloc;
        }
index 73f8d4fa682dabfff623cbfddaca87dcf56190de..dd82ee2f8d21a78a9294ab68a6be1a4bc3c9bf12 100644 (file)
@@ -1052,8 +1052,6 @@ static int __devinit dec_lance_probe(struct device *bdev, const int type)
 
        dev = alloc_etherdev(sizeof(struct lance_private));
        if (!dev) {
-               printk(KERN_ERR "%s: Unable to allocate etherdev, aborting.\n",
-                       name);
                ret = -ENOMEM;
                goto err_out;
        }
index 20e6dab0186c78da49d43e14b5f66370936c7cf3..1bb388f62e5bf2e8bbd911ff4ac55c338eaed0fe 100644 (file)
@@ -1649,8 +1649,6 @@ pcnet32_probe1(unsigned long ioaddr, int shared, struct pci_dev *pdev)
 
        dev = alloc_etherdev(sizeof(*lp));
        if (!dev) {
-               if (pcnet32_debug & NETIF_MSG_PROBE)
-                       pr_err("Memory allocation failed\n");
                ret = -ENOMEM;
                goto err_release_region;
        }
index 4108ac800cf0d86bb6d152ec8b47ca1798fa8736..ebc0dba5ba331e848717dde9a42187f6c6e65720 100644 (file)
@@ -1269,10 +1269,8 @@ static int __devinit bmac_probe(struct macio_dev *mdev, const struct of_device_i
        memcpy(addr, prop_addr, sizeof(addr));
 
        dev = alloc_etherdev(PRIV_BYTES);
-       if (!dev) {
-               printk(KERN_ERR "BMAC: alloc_etherdev failed, out of memory\n");
+       if (!dev)
                return -ENOMEM;
-       }
 
        bp = netdev_priv(dev);
        SET_NETDEV_DEV(dev, &mdev->ofdev.dev);
index 45ba18ee3d6a92ae6d0c775884e33459a762dc4d..bd5555dbe027610b6968ea854dcd8fc3688f21ae 100644 (file)
@@ -147,7 +147,6 @@ static int __devinit mace_probe(struct macio_dev *mdev, const struct of_device_i
 
        dev = alloc_etherdev(PRIV_BYTES);
        if (!dev) {
-               printk(KERN_ERR "MACE: can't allocate ethernet device !\n");
                rc = -ENOMEM;
                goto err_release;
        }
index b8591246eb4c35b9a12b53254ba4853381238ee7..7ee4aacb01a406624d1af49ee93f1bd28cf4d55e 100644 (file)
@@ -2689,7 +2689,6 @@ static int __devinit atl1c_probe(struct pci_dev *pdev,
        netdev = alloc_etherdev(sizeof(struct atl1c_adapter));
        if (netdev == NULL) {
                err = -ENOMEM;
-               dev_err(&pdev->dev, "etherdev alloc failed\n");
                goto err_alloc_etherdev;
        }
 
index c915c0873810ddb7c561aa416b34c416c5fb8b42..93ff2b231284e6f93ad8bdc0ca957bcdeaa7dfe3 100644 (file)
@@ -2300,7 +2300,6 @@ static int __devinit atl1e_probe(struct pci_dev *pdev,
        netdev = alloc_etherdev(sizeof(struct atl1e_adapter));
        if (netdev == NULL) {
                err = -ENOMEM;
-               dev_err(&pdev->dev, "etherdev alloc failed\n");
                goto err_alloc_etherdev;
        }
 
index 3fb66d09ece59e463c81eb20b77ba7cfa7df9fd0..66f53c797e3a470279eb01e6a31c6d37101fa9fc 100644 (file)
@@ -2138,7 +2138,6 @@ static int __devinit b44_init_one(struct ssb_device *sdev,
 
        dev = alloc_etherdev(sizeof(*bp));
        if (!dev) {
-               dev_err(sdev->dev, "Etherdev alloc failed, aborting\n");
                err = -ENOMEM;
                goto out;
        }
index 582cbcf5f9fbb44001e544987a121e5b1e6a30fb..ff19c3cf4409a5f8629f5e6e2f1b05ee105a03dc 100644 (file)
@@ -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);
 
index 084904ceaa301b4fd76f00a8411433ec1711b49e..49e7a258da8aa91554410900a4d23036e13e85c5 100644 (file)
@@ -2623,8 +2623,6 @@ static int __devinit sbmac_probe(struct platform_device *pldev)
         */
        dev = alloc_etherdev(sizeof(struct sbmac_softc));
        if (!dev) {
-               printk(KERN_ERR "%s: unable to allocate etherdev\n",
-                      dev_name(&pldev->dev));
                err = -ENOMEM;
                goto out_unmap;
        }
index a1f2e0fed78bc2b23b7caa2c1457255e6eae9b89..3bf3adca36951ede7af1a9923ebf712899223310 100644 (file)
@@ -15471,7 +15471,6 @@ static int __devinit tg3_init_one(struct pci_dev *pdev,
 
        dev = alloc_etherdev_mq(sizeof(*tp), TG3_IRQ_MAX_VECS);
        if (!dev) {
-               dev_err(&pdev->dev, "Etherdev alloc failed, aborting\n");
                err = -ENOMEM;
                goto err_out_power_down;
        }
index be7d91e4b7852701005947bcefe09aa5bf1d39f3..ff78f770dec91e12e9a816c413b768d31481acd4 100644 (file)
@@ -3284,7 +3284,6 @@ bnad_pci_probe(struct pci_dev *pdev,
         */
        netdev = alloc_etherdev(sizeof(struct bnad));
        if (!netdev) {
-               dev_err(&pdev->dev, "netdev allocation failed\n");
                err = -ENOMEM;
                return err;
        }
index 23200680d4c16e08ab0b384b93340e81fb12f04f..3c315f46859b3b01f25551a066e0df461bd63963 100644 (file)
@@ -1308,10 +1308,8 @@ static int __init macb_probe(struct platform_device *pdev)
 
        err = -ENOMEM;
        dev = alloc_etherdev(sizeof(*bp));
-       if (!dev) {
-               dev_err(&pdev->dev, "etherdev alloc failed, aborting.\n");
+       if (!dev)
                goto err_out;
-       }
 
        SET_NETDEV_DEV(dev, &pdev->dev);
 
index e53365a71484baabc0f9251ef100eea7f12f027d..9045a451d4a966c3fe224c503da3c185d88543b4 100644 (file)
@@ -2596,8 +2596,6 @@ static int __devinit cxgb4vf_pci_probe(struct pci_dev *pdev,
                netdev = alloc_etherdev_mq(sizeof(struct port_info),
                                           MAX_PORT_QSETS);
                if (netdev == NULL) {
-                       dev_err(&pdev->dev, "cannot allocate netdev for"
-                               " port %d\n", port_id);
                        t4vf_free_vi(adapter, viid);
                        err = -ENOMEM;
                        goto err_free_dev;
index 07df13745c43704ff6d5055f244ea0a400cc9efb..2838891a94ee381df47e1cd1aa43e96199bbb90f 100644 (file)
@@ -2280,10 +2280,8 @@ static int __devinit enic_probe(struct pci_dev *pdev,
         */
 
        netdev = alloc_etherdev(sizeof(struct enic));
-       if (!netdev) {
-               pr_err("Etherdev alloc failed, aborting\n");
+       if (!netdev)
                return -ENOMEM;
-       }
 
        pci_set_drvdata(pdev, netdev);
 
index f801754c71a7eac0754434e9077ab34092709b36..493cc6202081ea52445d728bccf1570e66667a25 100644 (file)
@@ -1373,10 +1373,8 @@ dm9000_probe(struct platform_device *pdev)
 
        /* Init network device */
        ndev = alloc_etherdev(sizeof(struct board_info));
-       if (!ndev) {
-               dev_err(&pdev->dev, "could not allocate device.\n");
+       if (!ndev)
                return -ENOMEM;
-       }
 
        SET_NETDEV_DEV(ndev, &pdev->dev);
 
index 4eb0d76145c2347cf5060223f6003a94bfbb7857..17ecb18341c9b35be30512199abb27e8c2667bc8 100644 (file)
@@ -1424,10 +1424,8 @@ static int __devinit tulip_init_one (struct pci_dev *pdev,
 
        /* alloc_etherdev ensures aligned and zeroed private structures */
        dev = alloc_etherdev (sizeof (*tp));
-       if (!dev) {
-               pr_err("ether device alloc failed, aborting\n");
+       if (!dev)
                return -ENOMEM;
-       }
 
        SET_NETDEV_DEV(dev, &pdev->dev);
        if (pci_resource_len (pdev, 0) < tulip_tbl[chip_idx].io_size) {
index 988b8eb24d373c9e05107a80e312a7551f6ddff8..b7c73eefb54b5237fe456d926a729bf13f05f697 100644 (file)
@@ -222,10 +222,9 @@ static int __devinit xircom_probe(struct pci_dev *pdev, const struct pci_device_
           is available.
         */
        dev = alloc_etherdev(sizeof(struct xircom_private));
-       if (!dev) {
-               pr_err("%s: failed to allocate etherdev\n", __func__);
+       if (!dev)
                goto device_fail;
-       }
+
        private = netdev_priv(dev);
 
        /* Allocate the send/receive buffers */
index 925c9bafc9b99519183eccc42b1b564a4bda3001..fe48cb7dde21e38bc9587a114b7c2e7d3e716ddf 100644 (file)
@@ -854,10 +854,8 @@ static int __devinit dnet_probe(struct platform_device *pdev)
 
        err = -ENOMEM;
        dev = alloc_etherdev(sizeof(*bp));
-       if (!dev) {
-               dev_err(&pdev->dev, "etherdev alloc failed, aborting.\n");
+       if (!dev)
                goto err_out_release_mem;
-       }
 
        /* TODO: Actually, we have some interesting features... */
        dev->features |= 0;
index 388c592b5ef5ea87a1bd782d3dd31ec56b0c867a..0b723ff2294bb2b521571df02bf58cf27000d00f 100644 (file)
@@ -913,7 +913,6 @@ static int __devinit ethoc_probe(struct platform_device *pdev)
        /* allocate networking device */
        netdev = alloc_etherdev(sizeof(struct ethoc));
        if (!netdev) {
-               dev_err(&pdev->dev, "cannot allocate network device\n");
                ret = -ENOMEM;
                goto out;
        }
index 6a5ee0776b2897e400ccdda6828f8c954c28d4d6..3598c5408e7986c47c50918a1d6c4a7048c4f69a 100644 (file)
@@ -2992,7 +2992,6 @@ static int __init hp100_isa_init(void)
        for (i = 0; i < HP100_DEVICES && hp100_port[i] != -1; ++i) {
                dev = alloc_etherdev(sizeof(struct hp100_private));
                if (!dev) {
-                       printk(KERN_WARNING "hp100: no memory for network device\n");
                        while (cards > 0)
                                cleanup_dev(hp100_devlist[--cards]);
 
index 14507d1e78c55c3cae2f98512d46f14653c600b3..8b73dd4724758758725f8ec4d773cbda953c54bf 100644 (file)
@@ -2980,7 +2980,6 @@ static struct ehea_port *ehea_setup_single_port(struct ehea_adapter *adapter,
        dev = alloc_etherdev_mq(sizeof(struct ehea_port), EHEA_MAX_PORT_RES);
 
        if (!dev) {
-               pr_err("no mem for net_device\n");
                ret = -ENOMEM;
                goto out_err;
        }
index d47c16e02d001313ff063d93ce0976ee3baf37b1..dac7ffb4eaf17cc3a5b6afb48969a7e0fa441b64 100644 (file)
@@ -2706,11 +2706,9 @@ static int __devinit emac_probe(struct platform_device *ofdev)
        /* Allocate our net_device structure */
        err = -ENOMEM;
        ndev = alloc_etherdev(sizeof(struct emac_instance));
-       if (!ndev) {
-               printk(KERN_ERR "%s: could not allocate ethernet device!\n",
-                      np->full_name);
+       if (!ndev)
                goto err_gone;
-       }
+
        dev = netdev_priv(ndev);
        dev->ndev = ndev;
        dev->ofdev = ofdev;
index acc31af6594a243b91d7c9f666363581f68ddf05..1cafa6562a06874c5c59596baa7e7ff009768304 100644 (file)
@@ -1032,10 +1032,8 @@ static struct net_device *veth_probe_one(int vlan,
        }
 
        dev = alloc_etherdev(sizeof (struct veth_port));
-       if (! dev) {
-               veth_error("Unable to allocate net_device structure!\n");
+       if (!dev)
                return NULL;
-       }
 
        port = netdev_priv(dev);
 
index 075451d0207d8d8e6c7af10272a6df61785aa540..3c636f16a3cb25b11fea2c77c337112e03941fb7 100644 (file)
@@ -2233,7 +2233,6 @@ static int __devinit ipg_probe(struct pci_dev *pdev,
         */
        dev = alloc_etherdev(sizeof(struct ipg_nic_private));
        if (!dev) {
-               pr_err("%s: alloc_etherdev failed\n", pci_name(pdev));
                rc = -ENOMEM;
                goto err_disable_0;
        }
index 9436397e5725ecd6efdd735ac579ff9fa268e131..485ab8cdac4869c0c59bf54d899d42f18f0608b0 100644 (file)
@@ -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);
index 27d651a80f3f32f6458645ad2fc6a778537a859c..1b86d0b45f3c2c436ef89051283faa394fd0bd8e 100644 (file)
@@ -2999,7 +2999,6 @@ jme_init_one(struct pci_dev *pdev,
         */
        netdev = alloc_etherdev(sizeof(*jme));
        if (!netdev) {
-               pr_err("Cannot allocate netdev structure\n");
                rc = -ENOMEM;
                goto err_out_release_regions;
        }
index 341d10130dcae13284ee31480ca09db7731023cd..f30db1c4660068ff50bedc468160afe4a6aa1b54 100644 (file)
@@ -1108,10 +1108,9 @@ static int korina_probe(struct platform_device *pdev)
        int rc;
 
        dev = alloc_etherdev(sizeof(struct korina_private));
-       if (!dev) {
-               printk(KERN_ERR DRV_NAME ": alloc_etherdev failed\n");
+       if (!dev)
                return -ENOMEM;
-       }
+
        SET_NETDEV_DEV(dev, &pdev->dev);
        lp = netdev_priv(dev);
 
index 85e2c6cd9708b6a394f95dacc2a35e8d5e60fd9b..86d2fe6e053d6de5258172f13d8e9e51ee711fb1 100644 (file)
@@ -731,6 +731,10 @@ ltq_etop_probe(struct platform_device *pdev)
        }
 
        dev = alloc_etherdev_mq(sizeof(struct ltq_etop_priv), 4);
+       if (!dev) {
+               err = -ENOMEM;
+               goto err_out;
+       }
        strcpy(dev->name, "eth%d");
        dev->netdev_ops = &ltq_eth_netdev_ops;
        dev->ethtool_ops = &ltq_etop_ethtool_ops;
index edb9bda55d556132d73e72ddcebef91ccf20c747..1d61eaac8587e9da9bb42c01fe4fd3affc57d2f4 100644 (file)
@@ -3852,10 +3852,8 @@ static struct net_device *skge_devinit(struct skge_hw *hw, int port,
        struct skge_port *skge;
        struct net_device *dev = alloc_etherdev(sizeof(*skge));
 
-       if (!dev) {
-               dev_err(&hw->pdev->dev, "etherdev alloc failed\n");
+       if (!dev)
                return NULL;
-       }
 
        SET_NETDEV_DEV(dev, &hw->pdev->dev);
        dev->netdev_ops = &skge_netdev_ops;
index 760c2b17dfd3675037133a996c9d98aa1e5fb5f4..82c2c86a19518c37df31d48bb6240930b8963367 100644 (file)
@@ -4700,10 +4700,8 @@ static __devinit struct net_device *sky2_init_netdev(struct sky2_hw *hw,
        struct sky2_port *sky2;
        struct net_device *dev = alloc_etherdev(sizeof(*sky2));
 
-       if (!dev) {
-               dev_err(&hw->pdev->dev, "etherdev alloc failed\n");
+       if (!dev)
                return NULL;
-       }
 
        SET_NETDEV_DEV(dev, &hw->pdev->dev);
        dev->irq = hw->pdev->irq;
index 467ae5824875c9009b94527fdeef7ef4d4992d9d..25e6480479df5e98f4f2907ee8286e9720cc5175 100644 (file)
@@ -1047,10 +1047,8 @@ int mlx4_en_init_netdev(struct mlx4_en_dev *mdev, int port,
 
        dev = alloc_etherdev_mqs(sizeof(struct mlx4_en_priv),
            prof->tx_ring_num, prof->rx_ring_num);
-       if (dev == NULL) {
-               mlx4_err(mdev, "Net device allocation failed\n");
+       if (dev == NULL)
                return -ENOMEM;
-       }
 
        SET_NETDEV_DEV(dev, &mdev->dev->pdev->dev);
        dev->dev_id =  port - 1;
index ab81c0dc96e29a2c3fde6b0e9d09a19925cc1664..7c717276502f443adee73d42dc6ddd50dcabad9c 100644 (file)
@@ -1362,10 +1362,8 @@ ks8695_probe(struct platform_device *pdev)
 
        /* Initialise a net_device */
        ndev = alloc_etherdev(sizeof(struct ks8695_priv));
-       if (!ndev) {
-               dev_err(&pdev->dev, "could not allocate device.\n");
+       if (!ndev)
                return -ENOMEM;
-       }
 
        SET_NETDEV_DEV(ndev, &pdev->dev);
 
index 134c4d07936bb26b60c182226744b6cb595da9c1..4b551feae4c5f4ff76ffd35adff365f75c41fa6a 100644 (file)
@@ -1419,10 +1419,8 @@ static int __devinit ks8851_probe(struct spi_device *spi)
        int ret;
 
        ndev = alloc_etherdev(sizeof(struct ks8851_net));
-       if (!ndev) {
-               dev_err(&spi->dev, "failed to alloc ethernet device\n");
+       if (!ndev)
                return -ENOMEM;
-       }
 
        spi->bits_per_word = 8;
 
index 50055e0282edf03b597a3b3c652e49f25cbecb05..c813e5d8db9df3eae25e8d5d5c70b3a0761aa5d9 100644 (file)
@@ -1553,9 +1553,6 @@ static int __devinit enc28j60_probe(struct spi_device *spi)
 
        dev = alloc_etherdev(sizeof(struct enc28j60_net));
        if (!dev) {
-               if (netif_msg_drv(&debug))
-                       dev_err(&spi->dev, DRV_NAME
-                               ": unable to alloc new ethernet\n");
                ret = -ENOMEM;
                goto error_alloc;
        }
index 20b72ecb020a5039f86518046f3072845070b770..27273ae1a6e6d0d48d0bb62ef80c5e9de079fcee 100644 (file)
@@ -3910,10 +3910,8 @@ static int myri10ge_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
        static int board_number;
 
        netdev = alloc_etherdev_mq(sizeof(*mgp), MYRI10GE_MAX_SLICES);
-       if (netdev == NULL) {
-               dev_err(dev, "Could not allocate ethernet device\n");
+       if (netdev == NULL)
                return -ENOMEM;
-       }
 
        SET_NETDEV_DEV(netdev, &pdev->dev);
 
index 97f63e12d86e21799f9473eee76d6052952b5fbb..138584608809872d8bcf78ff39b05df385016218 100644 (file)
@@ -7760,7 +7760,6 @@ s2io_init_nic(struct pci_dev *pdev, const struct pci_device_id *pre)
        else
                dev = alloc_etherdev(sizeof(struct s2io_nic));
        if (dev == NULL) {
-               DBG_PRINT(ERR_DBG, "Device allocation failed\n");
                pci_disable_device(pdev);
                pci_release_regions(pdev);
                return -ENODEV;
index a18bb10b4f0c73a62ece8edac7ce5861997334f2..5a12276f810df9f1390e3a6eddc883f5fd702aee 100644 (file)
@@ -383,7 +383,6 @@ static int netx_eth_drv_probe(struct platform_device *pdev)
 
        ndev = alloc_etherdev(sizeof (struct netx_eth_priv));
        if (!ndev) {
-               printk("%s: could not allocate device.\n", CARDNAME);
                ret = -ENOMEM;
                goto exit;
        }
index 0217991fede7ed8370ca03b536f77f0dc5dd661e..bdbec7e04a4c8e32ad41be8bf633fc114bde4976 100644 (file)
@@ -2419,8 +2419,6 @@ static int pch_gbe_probe(struct pci_dev *pdev,
        netdev = alloc_etherdev((int)sizeof(struct pch_gbe_adapter));
        if (!netdev) {
                ret = -ENOMEM;
-               dev_err(&pdev->dev,
-                       "ERR: Can't allocate and set up an Ethernet device\n");
                goto err_release_pci;
        }
        SET_NETDEV_DEV(netdev, &pdev->dev);
index db44e9af03c317ca1cd5e713fd8ccf781d09683f..4a5774271bd43be3a91406519fc4edd0de911789 100644 (file)
@@ -397,10 +397,9 @@ static int __devinit yellowfin_init_one(struct pci_dev *pdev,
        if (i) return i;
 
        dev = alloc_etherdev(sizeof(*np));
-       if (!dev) {
-               pr_err("cannot allocate ethernet device\n");
+       if (!dev)
                return -ENOMEM;
-       }
+
        SET_NETDEV_DEV(dev, &pdev->dev);
 
        np = netdev_priv(dev);
index 49b549ff2c780dfec1044e15de808135b97c8333..3bb725ed270381353fd7ecb618d9bd940327c9bc 100644 (file)
@@ -1740,8 +1740,6 @@ pasemi_mac_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
 
        dev = alloc_etherdev(sizeof(struct pasemi_mac));
        if (dev == NULL) {
-               dev_err(&pdev->dev,
-                       "pasemi_mac: Could not allocate ethernet device.\n");
                err = -ENOMEM;
                goto out_disable_device;
        }
index 7dd9a4b107e622980620d231b8f178335b1c526e..64aa44d5dabba593e81ad922d1f58789956cbec5 100644 (file)
@@ -1403,7 +1403,6 @@ netxen_nic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
 
        netdev = alloc_etherdev(sizeof(struct netxen_adapter));
        if(!netdev) {
-               dev_err(&pdev->dev, "failed to allocate net_device\n");
                err = -ENOMEM;
                goto err_out_free_res;
        }
index 7931531c3a40be12f1d4f838fd854878c16b9470..d49f6dac51fd928ca3507f5bb1e83617725f799c 100644 (file)
@@ -3805,7 +3805,6 @@ static int __devinit ql3xxx_probe(struct pci_dev *pdev,
 
        ndev = alloc_etherdev(sizeof(struct ql3_adapter));
        if (!ndev) {
-               pr_err("%s could not alloc etherdev\n", pci_name(pdev));
                err = -ENOMEM;
                goto err_out_free_regions;
        }
index 69b8e4ef14d94ff60bf8f9e4fdee1392295d333d..7bfdf57f4b76674a1624af29d92dcbb4dfa15342 100644 (file)
@@ -1576,7 +1576,6 @@ qlcnic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
 
        netdev = alloc_etherdev(sizeof(struct qlcnic_adapter));
        if (!netdev) {
-               dev_err(&pdev->dev, "failed to allocate net_device\n");
                err = -ENOMEM;
                goto err_out_free_res;
        }
index cb0eca807852d7dacc5986e4c5638a802177e9ed..76cab284876b2634bbd32e599c10a7758a5c4099 100644 (file)
@@ -1107,7 +1107,6 @@ static int __devinit r6040_init_one(struct pci_dev *pdev,
 
        dev = alloc_etherdev(sizeof(struct r6040_private));
        if (!dev) {
-               dev_err(&pdev->dev, "Failed to allocate etherdev\n");
                err = -ENOMEM;
                goto err_out;
        }
index a8779bedb3d9afbd3125a09f13ef0ce93f473f1a..1c3feb0116b5da0bc497e30c1f415bb904076288 100644 (file)
@@ -754,10 +754,9 @@ static __devinit struct net_device * rtl8139_init_board (struct pci_dev *pdev)
 
        /* dev and priv zeroed in alloc_etherdev */
        dev = alloc_etherdev (sizeof (*tp));
-       if (dev == NULL) {
-               dev_err(&pdev->dev, "Unable to alloc new net device\n");
+       if (dev == NULL)
                return ERR_PTR(-ENOMEM);
-       }
+
        SET_NETDEV_DEV(dev, &pdev->dev);
 
        tp = netdev_priv(dev);
index 707742207c753b2ef8c65d3e4411fce480039a5c..5eb6858ed0a7dbedbb49cab2007593ce3b3cf4fb 100644 (file)
@@ -4008,8 +4008,6 @@ rtl8169_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
 
        dev = alloc_etherdev(sizeof (*tp));
        if (!dev) {
-               if (netif_msg_drv(&debug))
-                       dev_err(&pdev->dev, "unable to alloc new ethernet\n");
                rc = -ENOMEM;
                goto out;
        }
index 813d41c4a845501bd37e772f094cc356ce029aab..1cb5a34d577958144f0c1fefbe40e4064a3f7d75 100644 (file)
@@ -1792,7 +1792,6 @@ static int sh_eth_drv_probe(struct platform_device *pdev)
 
        ndev = alloc_etherdev(sizeof(struct sh_eth_private));
        if (!ndev) {
-               dev_err(&pdev->dev, "Could not allocate device.\n");
                ret = -ENOMEM;
                goto out;
        }
index 22e9c0181ce84dca1742c6b563f50491f925dac2..bee97033167d38537e17b2ae22c4d07200c3b3fc 100644 (file)
@@ -960,11 +960,11 @@ static int __devinit s6gmac_probe(struct platform_device *pdev)
        int res;
        unsigned long i;
        struct mii_bus *mb;
+
        dev = alloc_etherdev(sizeof(*pd));
-       if (!dev) {
-               printk(KERN_ERR DRV_PRMT "etherdev alloc failed, aborting.\n");
+       if (!dev)
                return -ENOMEM;
-       }
+
        dev->open = s6gmac_open;
        dev->stop = s6gmac_stop;
        dev->hard_start_xmit = s6gmac_tx;
index f955a19eb22f28d39435dde9aab90cdad8381ea8..bb8c8222122b920511f729463a04b97395724c7d 100644 (file)
@@ -733,7 +733,6 @@ static int __devinit sgiseeq_probe(struct platform_device *pdev)
 
        dev = alloc_etherdev(sizeof (struct sgiseeq_private));
        if (!dev) {
-               printk(KERN_ERR "Sgiseeq: Etherdev alloc failed, aborting.\n");
                err = -ENOMEM;
                goto err_out;
        }
index 5b118cd5bf942c48e5d6be5ecf3e8f5b9c4c9559..a9deda8eaf631998bf599f83832fe3e2eb0d1bee 100644 (file)
@@ -1462,8 +1462,6 @@ static struct net_device * __devinit sis190_init_board(struct pci_dev *pdev)
 
        dev = alloc_etherdev(sizeof(*tp));
        if (!dev) {
-               if (netif_msg_drv(&debug))
-                       pr_err("unable to alloc new ethernet\n");
                rc = -ENOMEM;
                goto err_out_0;
        }
index 2c077ce0b6d6416d56f200ba1b62a080ce1ac11e..11dcb38b99f7e403757dac9b1e3ea7ed46f9edd6 100644 (file)
@@ -363,10 +363,9 @@ static int __devinit epic_init_one (struct pci_dev *pdev,
        ret = -ENOMEM;
 
        dev = alloc_etherdev(sizeof (*ep));
-       if (!dev) {
-               dev_err(&pdev->dev, "no memory for eth device\n");
+       if (!dev)
                goto err_out_free_res;
-       }
+
        SET_NETDEV_DEV(dev, &pdev->dev);
 
 #ifdef USE_IO_OPS
index 313ba3b32ab476be80d43f4b4773271f1b17760e..c28230148efd5385fb1f95b488fa5eac20c6ac34 100644 (file)
@@ -2065,7 +2065,6 @@ static int __devinit smc911x_drv_probe(struct platform_device *pdev)
 
        ndev = alloc_etherdev(sizeof(struct smc911x_local));
        if (!ndev) {
-               printk("%s: could not allocate device.\n", CARDNAME);
                ret = -ENOMEM;
                goto release_1;
        }
index 64ad3ed74495f171e29ff5d4e88c1d1efeab8a51..24104a1ee6a50ecbc4d31af4aefd005df4827cdb 100644 (file)
@@ -2223,7 +2223,6 @@ static int __devinit smc_drv_probe(struct platform_device *pdev)
 
        ndev = alloc_etherdev(sizeof(struct smc_local));
        if (!ndev) {
-               printk("%s: could not allocate device.\n", CARDNAME);
                ret = -ENOMEM;
                goto out;
        }
index 24d2df068d717dd2163742dd479c1a97db003235..6a1cd2360818e40c90812dc7c34a32dc2adecba0 100644 (file)
@@ -2374,7 +2374,6 @@ static int __devinit smsc911x_drv_probe(struct platform_device *pdev)
 
        dev = alloc_etherdev(sizeof(struct smsc911x_data));
        if (!dev) {
-               pr_warn("Could not allocate device\n");
                retval = -ENOMEM;
                goto out_release_io_1;
        }
index a9efbdfe5302df8cc22829b37ed53cef6aa653b8..595f9881e096bcfd63c69d46d911378027489a0a 100644 (file)
@@ -1598,10 +1598,8 @@ smsc9420_probe(struct pci_dev *pdev, const struct pci_device_id *id)
        pci_set_master(pdev);
 
        dev = alloc_etherdev(sizeof(*pd));
-       if (!dev) {
-               printk(KERN_ERR "ether device alloc failed\n");
+       if (!dev)
                goto out_disable_pci_device_1;
-       }
 
        SET_NETDEV_DEV(dev, &pdev->dev);
 
index ffc7581879b1e5fb65faa05ca941897e89700334..166fc95e5baf9f51c85718cbcbec7061b15d0d6f 100644 (file)
@@ -1801,10 +1801,8 @@ struct stmmac_priv *stmmac_dvr_probe(struct device *device,
        struct stmmac_priv *priv;
 
        ndev = alloc_etherdev(sizeof(struct stmmac_priv));
-       if (!ndev) {
-               pr_err("%s: ERROR: allocating the device\n", __func__);
+       if (!ndev)
                return NULL;
-       }
 
        SET_NETDEV_DEV(ndev, device);
 
index 46d84abe553d6a60a6e9ffdb30b124a3a445d50d..45292760fce4db650fe6c74849dc0a99f880c351 100644 (file)
@@ -4946,7 +4946,6 @@ static int __devinit cas_init_one(struct pci_dev *pdev,
 
        dev = alloc_etherdev(sizeof(*cp));
        if (!dev) {
-               dev_err(&pdev->dev, "Etherdev alloc failed, aborting\n");
                err = -ENOMEM;
                goto err_out_disable_pdev;
        }
index cf433931304fd5cf2544bdfc5d3f58609d4bd81c..d83c508167144134173b0ba2957f91071dd00a97 100644 (file)
@@ -9685,10 +9685,8 @@ static struct net_device * __devinit niu_alloc_and_init(
        struct niu *np;
 
        dev = alloc_etherdev_mq(sizeof(struct niu), NIU_NUM_TXCHAN);
-       if (!dev) {
-               dev_err(gen_dev, "Etherdev alloc failed, aborting\n");
+       if (!dev)
                return NULL;
-       }
 
        SET_NETDEV_DEV(dev, gen_dev);
 
index 31441a870b0b84bba089b757a12d73d9657e451e..ba041596e04629e5513732910d99d8b48175d3f4 100644 (file)
@@ -2885,7 +2885,6 @@ static int __devinit gem_init_one(struct pci_dev *pdev,
 
        dev = alloc_etherdev(sizeof(*gp));
        if (!dev) {
-               pr_err("Etherdev alloc failed, aborting\n");
                err = -ENOMEM;
                goto err_disable_device;
        }
index 2896f6e9672b8d79e726f2edfd028d07fa9ef668..92a037a8228a3f0c004347442517fe9c2d0c4588 100644 (file)
@@ -1026,10 +1026,8 @@ static struct vnet * __devinit vnet_new(const u64 *local_mac)
        int err, i;
 
        dev = alloc_etherdev(sizeof(*vp));
-       if (!dev) {
-               pr_err("Etherdev alloc failed, aborting\n");
+       if (!dev)
                return ERR_PTR(-ENOMEM);
-       }
 
        for (i = 0; i < ETH_ALEN; i++)
                dev->dev_addr[i] = (*local_mac >> (5 - i) * 8) & 0xff;
index 4b19e9b0606b842e0bed7f40bdc5fc0400901b5e..df7febba9ea64fb0e61bfce05532a60503e09050 100644 (file)
@@ -1978,7 +1978,6 @@ bdx_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
                ndev = alloc_etherdev(sizeof(struct bdx_priv));
                if (!ndev) {
                        err = -ENOMEM;
-                       pr_err("alloc_etherdev failed\n");
                        goto err_out_iomap;
                }
 
index 4d9a28ffd3c3ac20d2764ea72ada7e70cadc04f0..97e1df330a17386d3ad88c7db8c3b875b7875db4 100644 (file)
@@ -1143,11 +1143,8 @@ static int __devinit cpmac_probe(struct platform_device *pdev)
        }
 
        dev = alloc_etherdev_mq(sizeof(*priv), CPMAC_QUEUES);
-
-       if (!dev) {
-               printk(KERN_ERR "cpmac: Unable to allocate net_device\n");
+       if (!dev)
                return -ENOMEM;
-       }
 
        platform_set_drvdata(pdev, dev);
        priv = netdev_priv(dev);
index 794ac30a577b61b1baaf8a1499c1e0f9ee41bcaf..efd4f3ee1a2c2ce68dc510f33f4d596c402be672 100644 (file)
@@ -1789,7 +1789,6 @@ static int __devinit davinci_emac_probe(struct platform_device *pdev)
 
        ndev = alloc_etherdev(sizeof(struct emac_priv));
        if (!ndev) {
-               dev_err(&pdev->dev, "error allocating net_device\n");
                rc = -ENOMEM;
                goto free_clk;
        }
index 9c0dd6b8d6c9a9e6dfae193c36d469d8573853d4..817ad3bc49574670ab6040b6805528c5b863c852 100644 (file)
@@ -486,7 +486,6 @@ static int __devinit tlan_probe1(struct pci_dev *pdev,
 
        dev = alloc_etherdev(sizeof(struct tlan_priv));
        if (dev == NULL) {
-               pr_err("Could not allocate memory for device\n");
                rc = -ENOMEM;
                goto err_out_regions;
        }
index 71b785cd756368aa2a2c4972e7a9cc9ae9506408..f5ac603d5608199e15c7a60a18b20642fbdf9a64 100644 (file)
@@ -808,10 +808,9 @@ static int __devinit tc35815_init_one(struct pci_dev *pdev,
 
        /* dev zeroed in alloc_etherdev */
        dev = alloc_etherdev(sizeof(*lp));
-       if (dev == NULL) {
-               dev_err(&pdev->dev, "unable to alloc new ethernet\n");
+       if (dev == NULL)
                return -ENOMEM;
-       }
+
        SET_NETDEV_DEV(dev, &pdev->dev);
        lp = netdev_priv(dev);
        lp->dev = dev;
index 164fb775d7b333387cedacb80752c1c0b29bd566..fc5521c9c089ecc77f7966feaac3faba669aabed 100644 (file)
@@ -1582,10 +1582,8 @@ tsi108_init_one(struct platform_device *pdev)
        /* Create an ethernet device instance */
 
        dev = alloc_etherdev(sizeof(struct tsi108_prv_data));
-       if (!dev) {
-               printk("tsi108_eth: Could not allocate a device structure\n");
+       if (!dev)
                return -ENOMEM;
-       }
 
        printk("tsi108_eth%d: probe...\n", pdev->id);
        data = netdev_priv(dev);
index 10b18eb63d254834fc7a9b58f59eadd8078a75d9..1b95daa372c4d8679b2d49769d796cb740ced4d3 100644 (file)
@@ -927,7 +927,6 @@ static int __devinit rhine_init_one(struct pci_dev *pdev,
        dev = alloc_etherdev(sizeof(struct rhine_private));
        if (!dev) {
                rc = -ENOMEM;
-               dev_err(&pdev->dev, "alloc_etherdev failed\n");
                goto err_out;
        }
        SET_NETDEV_DEV(dev, &pdev->dev);
index 4128d6b8cc28d02bdd2c59a217d1376e54786451..2776bbc67936059d8afae1c37f75099294e16dea 100644 (file)
@@ -2733,10 +2733,8 @@ static int __devinit velocity_found1(struct pci_dev *pdev, const struct pci_devi
        }
 
        dev = alloc_etherdev(sizeof(struct velocity_info));
-       if (!dev) {
-               dev_err(&pdev->dev, "allocate net device failed.\n");
+       if (!dev)
                goto out;
-       }
 
        /* Chain it all together */
 
index f21addb1db95e89768eb431d4c634bb3e195b1d8..d8eb9c9e3ee236848f61e365f9b3e08a1de3a53f 100644 (file)
@@ -1011,10 +1011,9 @@ static int __devinit temac_of_probe(struct platform_device *op)
 
        /* Init network device structure */
        ndev = alloc_etherdev(sizeof(*lp));
-       if (!ndev) {
-               dev_err(&op->dev, "could not allocate device.\n");
+       if (!ndev)
                return -ENOMEM;
-       }
+
        ether_setup(ndev);
        dev_set_drvdata(&op->dev, ndev);
        SET_NETDEV_DEV(ndev, &op->dev);
index ea50caf8925b0f2090a7a83cbb42ca9a8a26463d..a7cf00438a3665f7f2284265c293bbd954d68a57 100644 (file)
@@ -1486,10 +1486,8 @@ static int __devinit axienet_of_probe(struct platform_device *op)
        const void *addr;
 
        ndev = alloc_etherdev(sizeof(*lp));
-       if (!ndev) {
-               dev_err(&op->dev, "could not allocate device.\n");
+       if (!ndev)
                return -ENOMEM;
-       }
 
        ether_setup(ndev);
        dev_set_drvdata(&op->dev, ndev);
index 79013e5731a5d94e424ec4ba499f8169646d345f..90e611a6f6c61fbeb94817dc3c8b062cae331fad 100644 (file)
@@ -1136,10 +1136,8 @@ static int __devinit xemaclite_of_probe(struct platform_device *ofdev)
 
        /* Create an ethernet device instance */
        ndev = alloc_etherdev(sizeof(struct net_local));
-       if (!ndev) {
-               dev_err(dev, "Could not allocate network device\n");
+       if (!ndev)
                return -ENOMEM;
-       }
 
        dev_set_drvdata(dev, ndev);
        SET_NETDEV_DEV(ndev, &ofdev->dev);
index a9e9ca8a86edbe2c4d7e7c9f7718420842e8aa6c..1a5a316cc96881de81104dfe3b5dd4cc99375bb6 100644 (file)
@@ -1260,10 +1260,8 @@ static void plip_attach (struct parport *port)
 
                sprintf(name, "plip%d", unit);
                dev = alloc_etherdev(sizeof(struct net_local));
-               if (!dev) {
-                       printk(KERN_ERR "plip: memory squeeze\n");
+               if (!dev)
                        return;
-               }
 
                strcpy(dev->name, name);
 
index 7145714a5ec95776f187b47b022c32751cfba792..a57f05726b5785a6d8ba7646fb3068c438869082 100644 (file)
@@ -497,8 +497,6 @@ static int rionet_probe(struct rio_dev *rdev, const struct rio_device_id *id)
        /* Allocate our net_device structure */
        ndev = alloc_etherdev(sizeof(struct rionet_private));
        if (ndev == NULL) {
-               printk(KERN_INFO "%s: could not allocate ethernet device.\n",
-                      DRV_NAME);
                rc = -ENOMEM;
                goto out;
        }
index 5d99b8cacd7d01065007f625459edc2329e46e8a..752393092325029a4d68ad757ac9c205d83fd27a 100644 (file)
@@ -1332,10 +1332,8 @@ static int pegasus_probe(struct usb_interface *intf,
        usb_get_dev(dev);
 
        net = alloc_etherdev(sizeof(struct pegasus));
-       if (!net) {
-               dev_err(&intf->dev, "can't allocate %s\n", "device");
+       if (!net)
                goto out;
-       }
 
        pegasus = netdev_priv(net);
        pegasus->dev_index = dev_index;
index 0710b4ca925208afe7f749b16df8874e95882e58..6dda2fe5b15bcd00f3d6cde0a30f6e321075154f 100644 (file)
@@ -894,10 +894,8 @@ static int rtl8150_probe(struct usb_interface *intf,
        struct net_device *netdev;
 
        netdev = alloc_etherdev(sizeof(rtl8150_t));
-       if (!netdev) {
-               err("Out of memory");
+       if (!netdev)
                return -ENOMEM;
-       }
 
        dev = netdev_priv(netdev);
 
index fae0fbd8bc887a99ca0e068bbc4d06bed884775c..b924f46c963cc136be1e2e26b21cbd81ed0019a5 100644 (file)
@@ -1334,10 +1334,8 @@ usbnet_probe (struct usb_interface *udev, const struct usb_device_id *prod)
 
        // set up our own records
        net = alloc_etherdev(sizeof(*dev));
-       if (!net) {
-               dbg ("can't kmalloc dev");
+       if (!net)
                goto out;
-       }
 
        /* netdev_printk() needs this so do it as early as possible */
        SET_NETDEV_DEV(net, &udev->dev);
index 87c0b586f11f8e87b05c19d97401d16b2b2bdf44..482cfa891f89ded244ce0d4027141b689c5a77f6 100644 (file)
@@ -2918,11 +2918,8 @@ vmxnet3_probe_device(struct pci_dev *pdev,
        printk(KERN_INFO "# of Tx queues : %d, # of Rx queues : %d\n",
               num_tx_queues, num_rx_queues);
 
-       if (!netdev) {
-               printk(KERN_ERR "Failed to alloc ethernet device for adapter "
-                       "%s\n", pci_name(pdev));
+       if (!netdev)
                return -ENOMEM;
-       }
 
        pci_set_drvdata(pdev, netdev);
        adapter = netdev_priv(netdev);
index 7e45ca2e78ef40b9886b5711a58cc0194aa0b47d..3010cee7b95ab935264c91e37627c2061928b24c 100644 (file)
@@ -1533,10 +1533,9 @@ struct net_device *init_atmel_card(unsigned short irq, unsigned long port,
 
        /* Create the network device object. */
        dev = alloc_etherdev(sizeof(*priv));
-       if (!dev) {
-               printk(KERN_ERR "atmel: Couldn't alloc_etherdev\n");
+       if (!dev)
                return NULL;
-       }
+
        if (dev_alloc_name(dev, dev->name) < 0) {
                printk(KERN_ERR "atmel: Couldn't get name!\n");
                goto err_out_free;
index d5ef696298eed37db811f55e60c0b7f3c0ded6f6..3adb24021a282703a0966e79a61fa5f22af128fb 100644 (file)
@@ -150,10 +150,9 @@ struct net_device *alloc_libipw(int sizeof_priv, int monitor)
        LIBIPW_DEBUG_INFO("Initializing...\n");
 
        dev = alloc_etherdev(sizeof(struct libipw_device) + sizeof_priv);
-       if (!dev) {
-               LIBIPW_ERROR("Unable to allocate network device.\n");
+       if (!dev)
                goto failed;
-       }
+
        ieee = netdev_priv(dev);
 
        ieee->dev = dev;
index db638b4454e34b3b066dd24f82567be9b7432338..168102e6ff6e38df7e7f984e726afb5a331f2143 100644 (file)
@@ -1279,11 +1279,8 @@ static struct net_device * __devinit xennet_create_dev(struct xenbus_device *dev
        struct netfront_info *np;
 
        netdev = alloc_etherdev(sizeof(struct netfront_info));
-       if (!netdev) {
-               printk(KERN_WARNING "%s> alloc_etherdev failed.\n",
-                      __func__);
+       if (!netdev)
                return ERR_PTR(-ENOMEM);
-       }
 
        np                   = netdev_priv(netdev);
        np->xbdev            = dev;