Commit 008971ad authored by Yang Yingliang's avatar Yang Yingliang Committed by Jakub Kicinski

net: dsa: microchip: ksz9477: remove unnecessary i2c_set_clientdata()

Remove unnecessary i2c_set_clientdata() 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 db5d451c
...@@ -59,8 +59,6 @@ static int ksz9477_i2c_remove(struct i2c_client *i2c) ...@@ -59,8 +59,6 @@ static int ksz9477_i2c_remove(struct i2c_client *i2c)
if (dev) if (dev)
ksz_switch_remove(dev); ksz_switch_remove(dev);
i2c_set_clientdata(i2c, NULL);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment