mirror_ubuntu-kernels/drivers/net/ethernet/smsc
Uwe Kleine-König e8e2c863f9 net: ethernet: smsc: 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>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-09-20 09:06:40 +01:00
..
epic100.c net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
Kconfig net: remove smc911x driver 2022-10-18 19:33:51 -07:00
Makefile net: remove smc911x driver 2022-10-18 19:33:51 -07:00
smc91c92_cs.c net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
smc91x.c net: ethernet: smsc: Convert to platform remove callback returning void 2023-09-20 09:06:40 +01:00
smc91x.h remove the h8300 architecture 2022-02-23 08:52:50 +01:00
smc9194.c smc9194: use eth_hw_addr_set() 2021-11-19 11:05:21 +00:00
smc9194.h
smsc911x.c net: ethernet: smsc: Convert to platform remove callback returning void 2023-09-20 09:06:40 +01:00
smsc911x.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 13 2019-05-21 11:28:45 +02:00
smsc9420.c net: smsc: Use pci_dev_id() to simplify the code 2023-08-13 12:30:39 +01:00
smsc9420.h eth: smsc: remove a copy of the NAPI_POLL_WEIGHT define 2022-04-29 11:56:41 +01:00