diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2022-09-21 22:05:23 +0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-09-22 19:30:39 -0700 |
commit | 774b060debb189cb778fc195395dd24ea67bef5b (patch) | |
tree | 5402b7c0d862e259cafaa340f7e422c5af64eff4 /drivers/net/dsa | |
parent | ee08bf0d0a3aa8c4f00ae006b8068e8ea16d1cf9 (diff) | |
download | linux-774b060debb189cb778fc195395dd24ea67bef5b.tar.bz2 |
net: dsa: vitesse-vsc73xx: remove unnecessary set_drvdata()
Remove unnecessary set_drvdata(NULL) function 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: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/dsa')
-rw-r--r-- | drivers/net/dsa/vitesse-vsc73xx-platform.c | 2 | ||||
-rw-r--r-- | drivers/net/dsa/vitesse-vsc73xx-spi.c | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/dsa/vitesse-vsc73xx-platform.c b/drivers/net/dsa/vitesse-vsc73xx-platform.c index fe4b154a0a57..bd4206e8f9af 100644 --- a/drivers/net/dsa/vitesse-vsc73xx-platform.c +++ b/drivers/net/dsa/vitesse-vsc73xx-platform.c @@ -121,8 +121,6 @@ static int vsc73xx_platform_remove(struct platform_device *pdev) vsc73xx_remove(&vsc_platform->vsc); - platform_set_drvdata(pdev, NULL); - return 0; } diff --git a/drivers/net/dsa/vitesse-vsc73xx-spi.c b/drivers/net/dsa/vitesse-vsc73xx-spi.c index 97a92e6da60d..85b9a0f51dd8 100644 --- a/drivers/net/dsa/vitesse-vsc73xx-spi.c +++ b/drivers/net/dsa/vitesse-vsc73xx-spi.c @@ -167,8 +167,6 @@ static void vsc73xx_spi_remove(struct spi_device *spi) return; vsc73xx_remove(&vsc_spi->vsc); - - spi_set_drvdata(spi, NULL); } static void vsc73xx_spi_shutdown(struct spi_device *spi) |