Skip to content

Commit

Permalink
net: axienet: remove unnecessary ether_setup after alloc_etherdev
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Subbaraya Sundeep Bhatta authored and David S. Miller committed Sep 12, 2014
1 parent e9c3f99 commit c706471
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/net/ethernet/xilinx/xilinx_axienet_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c706471

Please sign in to comment.