Message ID | 20220923143742.87093-2-yangyingliang@huawei.com (mailing list archive) |
---|---|
State | Accepted |
Commit | db5d451c4640a62b0971c7753ab321f089f32571 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | net: dsa: remove unnecessary i2c_set_clientdata() | expand |
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; }
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> --- drivers/net/dsa/lan9303_i2c.c | 2 -- 1 file changed, 2 deletions(-)