From: Libo Chen Date: Wed, 21 Aug 2013 07:02:27 +0000 (+0800) Subject: net: sunbmac: remove unnecessary dev_set_drvdata() X-Git-Tag: v3.12-rc1~132^2~215 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=63f076e96071eb6611e7537456299ca29feb63c0;p=profile%2Fcommon%2Fkernel-common.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/sun/sunbmac.c b/drivers/net/ethernet/sun/sunbmac.c index 0a32ca5..7217ee5 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; }