]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
net: ll_temac: Remove unnecessary ether_setup after alloc_etherdev
authorSubbaraya Sundeep Bhatta <subbaraya.sundeep.bhatta@xilinx.com>
Wed, 1 Oct 2014 09:01:17 +0000 (11:01 +0200)
committerDavid S. Miller <davem@davemloft.net>
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 <sbhatta@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
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 */