net: dsa: vsc73xxx: Make vsc73xx_remove() return void
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 12 Nov 2021 14:53:52 +0000 (15:53 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Nov 2021 13:15:07 +0000 (13:15 +0000)
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>
drivers/net/dsa/vitesse-vsc73xx-core.c
drivers/net/dsa/vitesse-vsc73xx.h

index a4b1447..4c18f61 100644 (file)
@@ -1216,12 +1216,10 @@ int vsc73xx_probe(struct vsc73xx *vsc)
 }
 EXPORT_SYMBOL(vsc73xx_probe);
 
-int vsc73xx_remove(struct vsc73xx *vsc)
+void vsc73xx_remove(struct vsc73xx *vsc)
 {
        dsa_unregister_switch(vsc->ds);
        gpiod_set_value(vsc->reset, 1);
-
-       return 0;
 }
 EXPORT_SYMBOL(vsc73xx_remove);
 
index 30b9515..30b1f0a 100644 (file)
@@ -26,5 +26,5 @@ struct vsc73xx_ops {
 
 int vsc73xx_is_addr_valid(u8 block, u8 subblock);
 int vsc73xx_probe(struct vsc73xx *vsc);
-int vsc73xx_remove(struct vsc73xx *vsc);
+void vsc73xx_remove(struct vsc73xx *vsc);
 void vsc73xx_shutdown(struct vsc73xx *vsc);