Skip to content

Commit

Permalink
net: sunhme: remove unnecessary dev_set_drvdata()
Browse files Browse the repository at this point in the history
Unnecessary dev_set_drvdata() is removed, because the driver core
clears the driver data to NULL after device_release or on probe failure.

Signed-off-by: Libo Chen <libo.chen@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Libo Chen authored and David S. Miller committed Aug 21, 2013
1 parent 63f076e commit 7d9a875
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/net/ethernet/sun/sunhme.c
Original file line number Diff line number Diff line change
Expand Up @@ -3250,8 +3250,6 @@ static int hme_sbus_remove(struct platform_device *op)

free_netdev(net_dev);

dev_set_drvdata(&op->dev, NULL);

return 0;
}

Expand Down

0 comments on commit 7d9a875

Please sign in to comment.