]> rtime.felk.cvut.cz Git - zynq/linux.git/commitdiff
net: axienet: Remove unnecessary ether_setup after alloc_etherdev
authorSubbaraya Sundeep Bhatta <subbaraya.sundeep.bhatta@xilinx.com>
Tue, 30 Sep 2014 09:18:10 +0000 (14:48 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 1 Oct 2014 05:54:27 +0000 (07:54 +0200)
Calling ether_setup is redundant since alloc_etherdev calls it.

Signed-off-by: Subbaraya Sundeep Bhatta <sbhatta@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/net/ethernet/xilinx/xilinx_axienet_main.c

index 16ed20b3b062abf23fc75cb9b6f5e6fdcd6f5e8e..b7271f04bf414bb6e2f5890c63811bd1b6e70657 100644 (file)
@@ -1540,7 +1540,6 @@ static int axienet_probe(struct platform_device *pdev)
        if (!ndev)
                return -ENOMEM;
 
-       ether_setup(ndev);
        platform_set_drvdata(pdev, ndev);
 
        SET_NETDEV_DEV(ndev, &pdev->dev);