mirror_ubuntu-kernels/drivers/net/ethernet/freescale/fs_enet
Uwe Kleine-König ead29c5e08 net: fs_enet: 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.

Reviewed-by: Michal Kubiak <michal.kubiak@intel.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20230710071946.3470249-6-u.kleine-koenig@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-07-11 20:24:33 -07:00
..
fec.h net: ethernet: Use existing define with polynomial 2018-07-27 19:16:37 +08:00
fs_enet-main.c net: fs_enet: Convert to platform remove callback returning void 2023-07-11 20:24:33 -07:00
fs_enet.h freescale/fs_enet:fix repeated words in comments 2022-06-30 20:04:10 -07:00
Kconfig drivers: net: Fix Kconfig indentation, continued 2019-11-21 11:54:09 -08:00
mac-fcc.c mm: reorder includes after introduction of linux/pgtable.h 2020-06-09 09:39:13 -07:00
mac-fec.c net: fs_enet: Fix wrong check in do_pd_setup 2022-09-16 12:13:00 +01:00
mac-scc.c
Makefile
mii-bitbang.c net: fs_enet: Convert to platform remove callback returning void 2023-07-11 20:24:33 -07:00
mii-fec.c net: fs_enet: Convert to platform remove callback returning void 2023-07-11 20:24:33 -07:00