]> git.karo-electronics.de Git - linux-beck.git/commitdiff
net: axienet: remove unnecessary ether_setup after alloc_etherdev
authorSubbaraya Sundeep Bhatta <subbaraya.sundeep.bhatta@xilinx.com>
Thu, 11 Sep 2014 09:23:33 +0000 (14:53 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Sep 2014 22:15:40 +0000 (18:15 -0400)
calling ether_setup is redundant since alloc_etherdev calls
it.

Signed-off-by: Subbaraya Sundeep Bhatta <sbhatta@xilinx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/xilinx/xilinx_axienet_main.c

index c8fd94133ecd22380cf047bf44a3e21064f5154f..4ea2d4e6f1d1894f22362e9a2b422392e959331d 100644 (file)
@@ -1485,7 +1485,6 @@ static int axienet_of_probe(struct platform_device *op)
        if (!ndev)
                return -ENOMEM;
 
-       ether_setup(ndev);
        platform_set_drvdata(op, ndev);
 
        SET_NETDEV_DEV(ndev, &op->dev);