Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'net-dsa-remove-unnecessary-i2c_set_clientdata'

Yang Yingliang says:

====================
net: dsa: remove unnecessary i2c_set_clientdata()

This patchset https://lore.kernel.org/all/20220921140524.3831101-8-yangyingliang@huawei.com/T/
removed all set_drvdata(NULL) in driver remove function.

i2c_set_clientdata() is another wrapper of set drvdata function, to follow
the same convention, remove i2c_set_clientdata() called in driver remove
function in drivers/net/dsa/.
====================

Link: https://lore.kernel.org/r/20220923143742.87093-1-yangyingliang@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

-6
-2
drivers/net/dsa/lan9303_i2c.c
··· 74 74 75 75 lan9303_remove(&sw_dev->chip); 76 76 77 - i2c_set_clientdata(client, NULL); 78 - 79 77 return 0; 80 78 } 81 79
-2
drivers/net/dsa/microchip/ksz9477_i2c.c
··· 59 59 if (dev) 60 60 ksz_switch_remove(dev); 61 61 62 - i2c_set_clientdata(i2c, NULL); 63 - 64 62 return 0; 65 63 } 66 64
-2
drivers/net/dsa/xrs700x/xrs700x_i2c.c
··· 114 114 115 115 xrs700x_switch_remove(priv); 116 116 117 - i2c_set_clientdata(i2c, NULL); 118 - 119 117 return 0; 120 118 } 121 119