net: dsa: sja1105: remove unnecessary spi_set_drvdata()

Remove unnecessary spi_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>
This commit is contained in:
Yang Yingliang 2022-09-21 22:05:22 +08:00 committed by Jakub Kicinski
parent 4f6ee77aeb
commit ee08bf0d0a
1 changed files with 0 additions and 2 deletions

View File

@ -3351,8 +3351,6 @@ static void sja1105_remove(struct spi_device *spi)
return;
dsa_unregister_switch(priv->ds);
spi_set_drvdata(spi, NULL);
}
static void sja1105_shutdown(struct spi_device *spi)