aboutsummaryrefslogtreecommitdiff
path: root/lib/refcount.c
diff options
context:
space:
mode:
authorGravatar Uwe Kleine-König <u.kleine-koenig@pengutronix.de> 2024-04-10 14:47:07 +0200
committerGravatar Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2024-04-11 15:26:59 +0200
commit2193014f79472658b8b1efa12a9adaae07f8b0e0 (patch)
tree22754f2e78e4921445830a1fd6f14a31cea6a100 /lib/refcount.c
parent/dev/port: don't compile file operations without CONFIG_DEVPORT (diff)
downloadlinux-2193014f79472658b8b1efa12a9adaae07f8b0e0.tar.gz
linux-2193014f79472658b8b1efa12a9adaae07f8b0e0.tar.bz2
linux-2193014f79472658b8b1efa12a9adaae07f8b0e0.zip
powerpc/powernv: 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> Link: https://lore.kernel.org/r/20240410124707.194228-2-u.kleine-koenig@pengutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/refcount.c')
0 files changed, 0 insertions, 0 deletions