linux-stable/drivers/net/wan
Uwe Kleine-König 0d1a7a8fac net: wan: framer/pef2256: 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: Herve Codina <herve.codina@bootlin.com>
Link: https://lore.kernel.org/r/9684419fd714cc489a3ef36d838d3717bb6aec6d.1709886922.git.u.kleine-koenig@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-03-11 14:58:20 -07:00
..
framer net: wan: framer/pef2256: Convert to platform remove callback returning void 2024-03-11 14:58:20 -07:00
.gitignore
c101.c net: split out ndo_siowandev ioctl 2021-07-27 20:11:45 +01:00
farsync.c net: farsync: Fix kmemleak when rmmods farsync 2022-12-12 09:42:45 +00:00
farsync.h WAN: Fix syntax errors in comments 2022-06-07 10:45:25 +02:00
fsl_qmc_hdlc.c net: wan: fsl_qmc_hdlc: Add framer support 2024-03-11 09:36:11 +00:00
fsl_ucc_hdlc.c net: wan/fsl_ucc_hdlc: Convert to platform remove callback returning void 2023-12-05 19:54:44 -08:00
fsl_ucc_hdlc.h
hd64570.c
hd64570.h
hd64572.c net: wan: switch to netif_napi_add_weight() 2022-05-08 11:33:57 +01:00
hd64572.h
hdlc.c net: split out ndo_siowandev ioctl 2021-07-27 20:11:45 +01:00
hdlc_cisco.c net: split out ndo_siowandev ioctl 2021-07-27 20:11:45 +01:00
hdlc_fr.c net: hldc_fr: use dev_addr_set() 2021-10-22 10:16:18 -07:00
hdlc_ppp.c net: split out ndo_siowandev ioctl 2021-07-27 20:11:45 +01:00
hdlc_raw.c net: split out ndo_siowandev ioctl 2021-07-27 20:11:45 +01:00
hdlc_raw_eth.c net: split out ndo_siowandev ioctl 2021-07-27 20:11:45 +01:00
hdlc_x25.c net: split out ndo_siowandev ioctl 2021-07-27 20:11:45 +01:00
ixp4xx_hss.c net: wan/ixp4xx_hss: Convert to platform remove callback returning void 2023-12-05 19:54:44 -08:00
Kconfig net: wan: Add support for QMC HDLC 2024-03-11 09:36:11 +00:00
lapbether.c net: lapbether: only support ethernet devices 2023-06-15 08:55:22 +01:00
Makefile net: wan: Add support for QMC HDLC 2024-03-11 09:36:11 +00:00
n2.c net: split out ndo_siowandev ioctl 2021-07-27 20:11:45 +01:00
pc300too.c net: split out ndo_siowandev ioctl 2021-07-27 20:11:45 +01:00
pci200syn.c net: split out ndo_siowandev ioctl 2021-07-27 20:11:45 +01:00
slic_ds26522.c net: fill in MODULE_DESCRIPTION()s for ds26522 module 2024-01-11 16:16:08 -08:00
slic_ds26522.h
wanxl.c net: split out ndo_siowandev ioctl 2021-07-27 20:11:45 +01:00
wanxl.h
wanxlfw.inc_shipped
wanxlfw.S