]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: microchip: ksz9477: remove unnecessary i2c_set_clientdata()
authorYang Yingliang <yangyingliang@huawei.com>
Fri, 23 Sep 2022 14:37:41 +0000 (22:37 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 27 Sep 2022 00:44:28 +0000 (17:44 -0700)
commit008971adb95d332d21b9cc94231d93d7324d859d
tree80249bcfb9ab5f5b87f760202526cb3e0c077241
parentdb5d451c4640a62b0971c7753ab321f089f32571
net: dsa: microchip: ksz9477: 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/microchip/ksz9477_i2c.c