diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2023-12-04 19:30:45 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-12-06 04:54:44 +0100 |
commit | 2d0c06fd39be2edb222dafa3aeb51770fca45263 (patch) | |
tree | 7e6cb27434987a3696dd7e3fc71c156b576eb235 /drivers/hid/hid-gt683r.c | |
parent | net: sfp: Convert to platform remove callback returning void (diff) | |
download | linux-2d0c06fd39be2edb222dafa3aeb51770fca45263.tar.xz linux-2d0c06fd39be2edb222dafa3aeb51770fca45263.zip |
net: wan/fsl_ucc_hdlc: 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.
Link: https://lore.kernel.org/r/20231117095922.876489-7-u.kleine-koenig@pengutronix.de
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/8c9ffca75ea24810f9ba05a514d5ad59847cc4fe.1701713943.git.u.kleine-koenig@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/hid/hid-gt683r.c')
0 files changed, 0 insertions, 0 deletions