1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/broadcom/asp2
Uwe Kleine-König d4295df3e0 net: ethernet: broadcom: 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 these drivers 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>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-09-20 09:06:37 +01:00
..
bcmasp.c net: ethernet: broadcom: Convert to platform remove callback returning void 2023-09-20 09:06:37 +01:00
bcmasp.h net: ethernet: bcmasp: fix possible OOB write in bcmasp_netfilt_get_all_active() 2023-09-11 08:26:10 +01:00
bcmasp_ethtool.c net: ethernet: bcmasp: fix possible OOB write in bcmasp_netfilt_get_all_active() 2023-09-11 08:26:10 +01:00
bcmasp_intf.c net: bcmasp: Add support for ethtool driver stats 2023-07-17 07:39:04 +01:00
bcmasp_intf_defs.h net: bcmasp: Add support for ethtool standard stats 2023-07-17 07:39:04 +01:00
Makefile net: bcmasp: Add support for ASP2.0 Ethernet controller 2023-07-17 07:39:04 +01:00