diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2016-09-15 04:25:52 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-16 10:25:50 +0200 |
commit | 7e5eded5c189abaea77556da41af1195af841b0a (patch) | |
tree | 2a76e9f5e59c095a977921e61f92558f7b5f46eb /drivers/net/ethernet/qualcomm | |
parent | net: dsa: b53: Remove unused including <linux/version.h> (diff) | |
download | linux-7e5eded5c189abaea77556da41af1195af841b0a.tar.xz linux-7e5eded5c189abaea77556da41af1195af841b0a.zip |
net: emac: remove unnecessary dev_set_drvdata()
The driver core clears the driver data to NULL after device_release
or on probe failure. Thus, it is not needed to manually clear the
device driver data to NULL.
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qualcomm')
-rw-r--r-- | drivers/net/ethernet/qualcomm/emac/emac.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/qualcomm/emac/emac.c b/drivers/net/ethernet/qualcomm/emac/emac.c index 56e0a9f1c5ec..42d2d233b60f 100644 --- a/drivers/net/ethernet/qualcomm/emac/emac.c +++ b/drivers/net/ethernet/qualcomm/emac/emac.c @@ -722,7 +722,6 @@ static int emac_remove(struct platform_device *pdev) mdiobus_unregister(adpt->mii_bus); free_netdev(netdev); - dev_set_drvdata(&pdev->dev, NULL); return 0; } |