diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2022-09-23 16:37:42 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-09-27 02:44:28 +0200 |
commit | 6387bf7c390a17a03f05a70099e135f61c7cb437 (patch) | |
tree | 655207cffb1576b9e34b54c947ff35bc1b76da6b /drivers/net/dsa/xrs700x | |
parent | net: dsa: microchip: ksz9477: remove unnecessary i2c_set_clientdata() (diff) | |
download | linux-6387bf7c390a17a03f05a70099e135f61c7cb437.tar.xz linux-6387bf7c390a17a03f05a70099e135f61c7cb437.zip |
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>
Diffstat (limited to 'drivers/net/dsa/xrs700x')
-rw-r--r-- | drivers/net/dsa/xrs700x/xrs700x_i2c.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/dsa/xrs700x/xrs700x_i2c.c b/drivers/net/dsa/xrs700x/xrs700x_i2c.c index 6deae388a0d6..cd533b9e17ec 100644 --- a/drivers/net/dsa/xrs700x/xrs700x_i2c.c +++ b/drivers/net/dsa/xrs700x/xrs700x_i2c.c @@ -114,8 +114,6 @@ static int xrs700x_i2c_remove(struct i2c_client *i2c) xrs700x_switch_remove(priv); - i2c_set_clientdata(i2c, NULL); - return 0; } |