From: Subbaraya Sundeep Bhatta Date: Thu, 11 Sep 2014 09:23:33 +0000 (+0530) Subject: net: axienet: remove unnecessary ether_setup after alloc_etherdev X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c706471b2601d1c9058e7b866db77f6eb7dd37af;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git net: axienet: remove unnecessary ether_setup after alloc_etherdev calling ether_setup is redundant since alloc_etherdev calls it. Signed-off-by: Subbaraya Sundeep Bhatta Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c index c8fd94133ecd..4ea2d4e6f1d1 100644 --- a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c +++ b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c @@ -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);