summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sun/sunbmac.c
diff options
context:
space:
mode:
authorLibo Chen <libo.chen@huawei.com>2013-08-21 09:02:27 +0200
committerDavid S. Miller <davem@davemloft.net>2013-08-21 21:27:04 +0200
commit63f076e96071eb6611e7537456299ca29feb63c0 (patch)
tree2d38b7fa1d09a81b68def9381bd8ccbfb1d6f978 /drivers/net/ethernet/sun/sunbmac.c
parentnet: fec_mpc52xx_phy: remove unnecessary dev_set_drvdata() (diff)
downloadlinux-63f076e96071eb6611e7537456299ca29feb63c0.tar.xz
linux-63f076e96071eb6611e7537456299ca29feb63c0.zip
net: sunbmac: 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/sunbmac.c')
-rw-r--r--drivers/net/ethernet/sun/sunbmac.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/sun/sunbmac.c b/drivers/net/ethernet/sun/sunbmac.c
index 0a32ca5ad58c..7217ee5d6273 100644
--- a/drivers/net/ethernet/sun/sunbmac.c
+++ b/drivers/net/ethernet/sun/sunbmac.c
@@ -1259,8 +1259,6 @@ static int bigmac_sbus_remove(struct platform_device *op)
free_netdev(net_dev);
- dev_set_drvdata(&op->dev, NULL);
-
return 0;
}