summaryrefslogtreecommitdiff
path: root/drivers/net/dsa
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2022-09-23 22:37:40 +0800
committerJakub Kicinski <kuba@kernel.org>2022-09-26 17:44:28 -0700
commitdb5d451c4640a62b0971c7753ab321f089f32571 (patch)
tree1215391417847bbf2c8f8462c7988c7aa1f0cc18 /drivers/net/dsa
parentb860a1b964be7917ed3dcaa674ec0a2ba0a62aa0 (diff)
net: dsa: lan9303: 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')
-rw-r--r--drivers/net/dsa/lan9303_i2c.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/dsa/lan9303_i2c.c b/drivers/net/dsa/lan9303_i2c.c
index 8ca4713310fa..79be5fc044bd 100644
--- a/drivers/net/dsa/lan9303_i2c.c
+++ b/drivers/net/dsa/lan9303_i2c.c
@@ -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;
}