Merge branch 'net-dsa-remove-unnecessary-i2c_set_clientdata'

Yang Yingliang says:

====================
net: dsa: remove unnecessary i2c_set_clientdata()

This patchset https://lore.kernel.org/all/20220921140524.3831101-8-yangyingliang@huawei.com/T/
removed all set_drvdata(NULL) in driver remove function.

i2c_set_clientdata() is another wrapper of set drvdata function, to follow
the same convention, remove i2c_set_clientdata() called in driver remove
function in drivers/net/dsa/.
====================

Link: https://lore.kernel.org/r/20220923143742.87093-1-yangyingliang@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
Jakub Kicinski 2022-09-26 17:44:31 -07:00
commit ebb410a03e
3 changed files with 0 additions and 6 deletions

View File

@ -74,8 +74,6 @@ static int lan9303_i2c_remove(struct i2c_client *client)
lan9303_remove(&sw_dev->chip);
i2c_set_clientdata(client, NULL);
return 0;
}

View File

@ -59,8 +59,6 @@ static int ksz9477_i2c_remove(struct i2c_client *i2c)
if (dev)
ksz_switch_remove(dev);
i2c_set_clientdata(i2c, NULL);
return 0;
}

View File

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