]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: lan9303: remove unnecessary i2c_set_clientdata()
authorYang Yingliang <yangyingliang@huawei.com>
Fri, 23 Sep 2022 14:37:40 +0000 (22:37 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 27 Sep 2022 00:44:28 +0000 (17:44 -0700)
commitdb5d451c4640a62b0971c7753ab321f089f32571
tree1215391417847bbf2c8f8462c7988c7aa1f0cc18
parentb860a1b964be7917ed3dcaa674ec0a2ba0a62aa0
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>
drivers/net/dsa/lan9303_i2c.c