Skip to content

Commit c706471

Browse files
Sundeep-Bhattadavem330
authored andcommitted
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 <sbhatta@xilinx.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent e9c3f99 commit c706471

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/net/ethernet/xilinx/xilinx_axienet_main.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1485,7 +1485,6 @@ static int axienet_of_probe(struct platform_device *op)
14851485
if (!ndev)
14861486
return -ENOMEM;
14871487

1488-
ether_setup(ndev);
14891488
platform_set_drvdata(op, ndev);
14901489

14911490
SET_NETDEV_DEV(ndev, &op->dev);

0 commit comments

Comments
 (0)