linux/drivers/staging/octeon
Uwe Kleine-König c46d4073ec staging: octeon: ethernet: Convert to platform remove callback returning void
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is (mostly) ignored
and this typically results in resource leaks. To improve here there is a
quest to make the remove callback return void. In the first step of this
quest all drivers are converted to .remove_new() which already returns
void.

Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20230403154014.2564054-23-u.kleine-koenig@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-04-03 21:49:55 +02:00
..
ethernet-defines.h staging: octeon: Indent with tabs instead of spaces 2020-07-23 20:34:34 +02:00
ethernet-mdio.c staging: octeon: remove braces from single-line block 2021-02-07 10:05:29 +01:00
ethernet-mdio.h
ethernet-mem.c
ethernet-mem.h
ethernet-rgmii.c
ethernet-rx.c staging: switch to netif_napi_add_weight() 2022-07-08 14:28:21 +02:00
ethernet-rx.h
ethernet-sgmii.c
ethernet-spi.c staging: octeon: cleanup unnecessary parentheses in ethernet-spmi.c 2021-03-10 09:25:26 +01:00
ethernet-tx.c staging: octeon: remove redundant variable total_freed 2022-10-20 17:48:40 +02:00
ethernet-tx.h staging: octeon: Fix return type of cvm_oct_xmit and cvm_oct_xmit_pow 2022-09-24 13:07:31 +02:00
ethernet-util.h
ethernet.c staging: octeon: ethernet: Convert to platform remove callback returning void 2023-04-03 21:49:55 +02:00
Kconfig
Makefile
octeon-ethernet.h
octeon-stubs.h Staging: octeon: Fix line ending with '(' 2023-03-17 08:14:46 +01:00
TODO