net: dsa: xrs700x: 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: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
Yang Yingliang 2022-09-23 22:37:42 +08:00 committed by Jakub Kicinski
parent 008971adb9
commit 6387bf7c39
1 changed files with 0 additions and 2 deletions

View File

@ -114,8 +114,6 @@ static int xrs700x_i2c_remove(struct i2c_client *i2c)
xrs700x_switch_remove(priv); xrs700x_switch_remove(priv);
i2c_set_clientdata(i2c, NULL);
return 0; return 0;
} }