nfp: remove unnecessary call to ether_setup()
authorJakub Kicinski <jakub.kicinski@netronome.com>
Mon, 31 Oct 2016 20:43:11 +0000 (20:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Nov 2016 15:04:58 +0000 (11:04 -0400)
ether_setup() will be invoked by alloc_etherdev_mqs(), no need
to call it again.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_net_common.c

index 4e4b6e3b30d76db06a22f360ae0f714b66ac2f76..bd28e42bee2bafcefefe8ed902ef8d4d564dfef2 100644 (file)
@@ -2839,7 +2839,6 @@ int nfp_net_netdev_init(struct net_device *netdev)
                return err;
 
        /* Finalise the netdev setup */
-       ether_setup(netdev);
        netdev->netdev_ops = &nfp_net_netdev_ops;
        netdev->watchdog_timeo = msecs_to_jiffies(5 * 1000);