Skip to contentSkip to conversation

net: sunbmac: remove unnecessary dev_set_drvdata()

PATCH In review Libo Chen 1 participant 1 message Aug 21, 2013

Subsystems (2)
lore
Share & tools
lore

Libo Chen

author
#0 lore raw

PATCH 4/8 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.

---
 drivers/net/ethernet/sun/sunbmac.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
drivers/net/ethernet/sun/sunbmac.c +0 -2
index 0a32ca5..7217ee5 100644
@@ -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;
 }
 
Signature · 1 line
1.7.1