diff options
author | Libo Chen <libo.chen@huawei.com> | 2013-08-21 09:02:31 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-21 21:27:04 +0200 |
commit | 7d9a875a76755e2da8f64ca962ea3f5147f2467f (patch) | |
tree | 26049d1b900fb5c2ac648c0360f2655c594553ed /drivers/net/ethernet/sun | |
parent | net: sunbmac: remove unnecessary dev_set_drvdata() (diff) | |
download | linux-7d9a875a76755e2da8f64ca962ea3f5147f2467f.tar.xz linux-7d9a875a76755e2da8f64ca962ea3f5147f2467f.zip |
net: sunhme: remove unnecessary dev_set_drvdata()
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>
Diffstat (limited to 'drivers/net/ethernet/sun')
-rw-r--r-- | drivers/net/ethernet/sun/sunhme.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/sun/sunhme.c b/drivers/net/ethernet/sun/sunhme.c index b90d31145ac1..c67e683a36e1 100644 --- a/drivers/net/ethernet/sun/sunhme.c +++ b/drivers/net/ethernet/sun/sunhme.c @@ -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; } |