diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2024-03-08 11:51:09 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-03-12 00:58:20 +0300 |
commit | 0d1a7a8fac5b101a6f67283fe8316fa4fb6fdb99 (patch) | |
tree | 3f4aeb0181f05925115d131faca7f6c588dbd036 /lib/fonts/font_pearl_8x8.c | |
parent | 838b6c9cc47fc430818ec75e361151b3a3a45477 (diff) | |
download | linux-0d1a7a8fac5b101a6f67283fe8316fa4fb6fdb99.tar.xz |
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>
Diffstat (limited to 'lib/fonts/font_pearl_8x8.c')
0 files changed, 0 insertions, 0 deletions