Commit ebe48922 authored by Yang Yingliang's avatar Yang Yingliang Committed by Jakub Kicinski
Browse files

net: dsa: mt7530: 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: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 3525ecc1
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -3300,8 +3300,6 @@ mt7530_remove(struct mdio_device *mdiodev)

	dsa_unregister_switch(priv->ds);
	mutex_destroy(&priv->reg_mutex);

	dev_set_drvdata(&mdiodev->dev, NULL);
}

static void mt7530_shutdown(struct mdio_device *mdiodev)