mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
net: dsa: qca8k: remove unnecessary dev_set_drvdata()
Remove unnecessary dev_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:
parent
14b29ece30
commit
68c4e297e0
1 changed files with 0 additions and 2 deletions
|
@ -1957,8 +1957,6 @@ qca8k_sw_remove(struct mdio_device *mdiodev)
|
|||
qca8k_port_set_status(priv, i, 0);
|
||||
|
||||
dsa_unregister_switch(priv->ds);
|
||||
|
||||
dev_set_drvdata(&mdiodev->dev, NULL);
|
||||
}
|
||||
|
||||
static void qca8k_sw_shutdown(struct mdio_device *mdiodev)
|
||||
|
|
Loading…
Add table
Reference in a new issue