net: ll_temac: Remove unnecessary ether_setup after alloc_etherdev
authorSubbaraya Sundeep Bhatta <[email protected]>
Wed, 1 Oct 2014 09:01:17 +0000 (11:01 +0200)
committerDavid S. Miller <[email protected]>
Wed, 1 Oct 2014 19:01:10 +0000 (15:01 -0400)
Calling ether_setup is redundant since alloc_etherdev calls it.

Signed-off-by: Subbaraya Sundeep Bhatta <[email protected]>
Signed-off-by: Michal Simek <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/xilinx/ll_temac_main.c

index fda5891835d4c8ea3b2fad1725d542dc0dacff10..629077050fce02de2437ed73d6bf7f7b7de5a177 100644 (file)
@@ -1012,7 +1012,6 @@ static int temac_of_probe(struct platform_device *op)
        if (!ndev)
                return -ENOMEM;
 
-       ether_setup(ndev);
        platform_set_drvdata(op, ndev);
        SET_NETDEV_DEV(ndev, &op->dev);
        ndev->flags &= ~IFF_MULTICAST;  /* clear multicast */