Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Yang Yingliang and committed by
Jakub Kicinski
774b060d ee08bf0d

-4
-2
drivers/net/dsa/vitesse-vsc73xx-platform.c
··· 121 121 122 122 vsc73xx_remove(&vsc_platform->vsc); 123 123 124 - platform_set_drvdata(pdev, NULL); 125 - 126 124 return 0; 127 125 } 128 126
-2
drivers/net/dsa/vitesse-vsc73xx-spi.c
··· 167 167 return; 168 168 169 169 vsc73xx_remove(&vsc_spi->vsc); 170 - 171 - spi_set_drvdata(spi, NULL); 172 170 } 173 171 174 172 static void vsc73xx_spi_shutdown(struct spi_device *spi)