drivers/net: Remove alloc_etherdev error messages
[deliverable/linux.git] / drivers / net / ethernet / s6gmac.c
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;
This page took 0.027965 seconds and 5 git commands to generate.