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

net: dsa: vsc73xxx: Make vsc73xx_remove() return void

vsc73xx_remove() returns zero unconditionally and no caller checks the
returned value. So convert the function to return no value.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Uwe Kleine-König and committed by
David S. Miller
e99fa423 ac746c85

+2 -4
+1 -3
drivers/net/dsa/vitesse-vsc73xx-core.c
··· 1216 1216 } 1217 1217 EXPORT_SYMBOL(vsc73xx_probe); 1218 1218 1219 - int vsc73xx_remove(struct vsc73xx *vsc) 1219 + void vsc73xx_remove(struct vsc73xx *vsc) 1220 1220 { 1221 1221 dsa_unregister_switch(vsc->ds); 1222 1222 gpiod_set_value(vsc->reset, 1); 1223 - 1224 - return 0; 1225 1223 } 1226 1224 EXPORT_SYMBOL(vsc73xx_remove); 1227 1225
+1 -1
drivers/net/dsa/vitesse-vsc73xx.h
··· 26 26 27 27 int vsc73xx_is_addr_valid(u8 block, u8 subblock); 28 28 int vsc73xx_probe(struct vsc73xx *vsc); 29 - int vsc73xx_remove(struct vsc73xx *vsc); 29 + void vsc73xx_remove(struct vsc73xx *vsc); 30 30 void vsc73xx_shutdown(struct vsc73xx *vsc);