diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2022-09-21 22:05:12 +0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-09-22 19:30:36 -0700 |
commit | f6ddabca45f684357cfdea7a61b94ddfb22cd583 (patch) | |
tree | 1314925fd7b9e5280c617400177411c3852d9288 /drivers/net/dsa/lantiq_gswip.c | |
parent | 2697085007f0dd2a1c0e31375934d302ff68bca2 (diff) | |
download | lwn-f6ddabca45f684357cfdea7a61b94ddfb22cd583.tar.gz lwn-f6ddabca45f684357cfdea7a61b94ddfb22cd583.zip |
net: dsa: lantiq_gswip: 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>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/dsa/lantiq_gswip.c')
-rw-r--r-- | drivers/net/dsa/lantiq_gswip.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/dsa/lantiq_gswip.c b/drivers/net/dsa/lantiq_gswip.c index 88f95d6e41c9..05ecaa007ab1 100644 --- a/drivers/net/dsa/lantiq_gswip.c +++ b/drivers/net/dsa/lantiq_gswip.c @@ -2229,8 +2229,6 @@ static int gswip_remove(struct platform_device *pdev) for (i = 0; i < priv->num_gphy_fw; i++) gswip_gphy_fw_remove(priv, &priv->gphy_fw[i]); - platform_set_drvdata(pdev, NULL); - return 0; } |