summaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/hirschmann
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2022-09-21 16:05:10 +0200
committerJakub Kicinski <kuba@kernel.org>2022-09-23 04:30:35 +0200
commit8668cfc6db48aafed0cc9cd2f770dea246e02f52 (patch)
tree7da3b284d23f284f09c001ae62fc89eea374d281 /drivers/net/dsa/hirschmann
parentnet: dsa: loop: remove unnecessary dev_set_drvdata() (diff)
downloadlinux-8668cfc6db48aafed0cc9cd2f770dea246e02f52.tar.xz
linux-8668cfc6db48aafed0cc9cd2f770dea246e02f52.zip
net: dsa: hellcreek: remove unnecessary platform_set_drvdata()
Remove unnecessary platform_set_drvdata() in ->remove(), the driver_data will be set to NULL in device_unbind_cleanup() after calling ->remove(). Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Acked-by: Kurt Kanzenbach <kurt@linutronix.de> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/dsa/hirschmann')
-rw-r--r--drivers/net/dsa/hirschmann/hellcreek.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/dsa/hirschmann/hellcreek.c b/drivers/net/dsa/hirschmann/hellcreek.c
index ea8bbfce0f1f..eac6ace7c5f9 100644
--- a/drivers/net/dsa/hirschmann/hellcreek.c
+++ b/drivers/net/dsa/hirschmann/hellcreek.c
@@ -1996,7 +1996,6 @@ static int hellcreek_remove(struct platform_device *pdev)
hellcreek_hwtstamp_free(hellcreek);
hellcreek_ptp_free(hellcreek);
dsa_unregister_switch(hellcreek->ds);
- platform_set_drvdata(pdev, NULL);
return 0;
}