linux-next/drivers/net/ieee802154
Uwe Kleine-König 9d4ccdefcb ieee802154: hwsim: 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 ignored (apart
from emitting a warning) 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. Eventually after all drivers
are converted, .remove_new() will be renamed to .remove().

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>
Acked-by: Stefan Schmidt <stefan@datenfreihafen.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-wpan/20231117095922.876489-11-u.kleine-koenig@pengutronix.de
2023-11-20 11:29:57 +01:00
..
adf7242.c net: ieee802154: adf7242: Fix some potential buffer overflow in adf7242_stats_show() 2023-10-22 11:28:43 +01:00
at86rf230.c net: ieee802154: at86rf230: drop of_match_ptr for ID table 2023-03-15 08:11:02 +00:00
at86rf230.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
atusb.c ieee802154: atusb: add support for trac feature 2022-10-12 19:43:20 +02:00
atusb.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 372 2019-06-05 17:37:10 +02:00
ca8210.c ieee802154: ca8210: Fix a potential UAF in ca8210_probe 2023-10-07 20:37:38 +02:00
cc2520.c Merge tag 'ieee802154-for-net-next-2023-02-20' of git://git.kernel.org/pub/scm/linux/kernel/git/sschmidt/wpan-next 2023-02-20 16:40:52 -08:00
fakelb.c ieee802154: fakelb: Convert to platform remove callback returning void 2023-11-20 11:29:56 +01:00
Kconfig net: ieee802154: at86rf230: Forward Tx trac errors 2022-04-25 20:52:22 +02:00
mac802154_hwsim.c ieee802154: hwsim: Convert to platform remove callback returning void 2023-11-20 11:29:57 +01:00
mac802154_hwsim.h ieee802154: hwsim: add replacement for fakelb 2018-08-06 11:21:15 +02:00
Makefile ieee802154: hwsim: add replacement for fakelb 2018-08-06 11:21:15 +02:00
mcr20a.c net: ieee802154: mcr20a: drop of_match_ptr for ID table 2023-03-15 08:11:02 +00:00
mcr20a.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
mrf24j40.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00