linux/drivers/net/can/sja1000
Uwe Kleine-König bc79adfbd1 can: sja1000_platform: 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() is
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>
Link: https://lore.kernel.org/r/20230512212725.143824-16-u.kleine-koenig@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2023-05-15 22:53:51 +02:00
..
ems_pci.c can: ems_pci: Add myself as module author 2023-02-02 17:33:53 +01:00
ems_pcmcia.c can: sja1000: fix use after free in ems_pcmcia_add_card() 2021-12-07 09:08:58 +01:00
f81601.c can: sja1000: f81601: remove unused including <linux/version.h> 2019-08-13 16:37:03 +02:00
Kconfig can: Fix Links to Technologic Systems web resources 2022-04-19 17:12:12 +02:00
kvaser_pci.c module: remove never implemented MODULE_SUPPORTED_DEVICE 2021-03-17 13:16:18 -07:00
Makefile can: sja1000: f81601: add Fintek F81601 support 2019-07-24 10:30:37 +02:00
peak_pci.c can: peak_pci: peak_pci_remove(): fix UAF 2021-10-17 22:51:50 +02:00
peak_pcmcia.c net: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:07 -07:00
plx_pci.c module: remove never implemented MODULE_SUPPORTED_DEVICE 2021-03-17 13:16:18 -07:00
sja1000_isa.c can: sja1000_isa: Convert to platform remove callback returning void 2023-05-15 22:53:51 +02:00
sja1000_platform.c can: sja1000_platform: Convert to platform remove callback returning void 2023-05-15 22:53:51 +02:00
sja1000.c can: dev: fix skb drop check 2022-11-07 14:00:27 +01:00
sja1000.h can: sja1000: Add Quirk for RZ/N1 SJA1000 CAN controller 2022-07-19 20:46:59 +02:00
tscan1.c can: Fix Links to Technologic Systems web resources 2022-04-19 17:12:12 +02:00