From: Libo Chen Date: Wed, 21 Aug 2013 07:02:31 +0000 (+0800) Subject: net: sunhme: remove unnecessary dev_set_drvdata() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7d9a875a76755e2da8f64ca962ea3f5147f2467f;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: David S. Miller --- 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; }