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