ipmi: ipmi_powernv: Convert to platform remove callback returning void
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 5 Mar 2024 16:26:59 +0000 (17:26 +0100)
committerCorey Minyard <minyard@acm.org>
Wed, 17 Apr 2024 19:55:04 +0000 (14:55 -0500)
commit26edd74f5d778d9556fa80763522ca0b566f68e0
treeaa1aa878dd01a1a89a4d57bc91b606effb25f23e
parent2348918407a73c3d5e35b09bd39a52ed5d0d6ab2
ipmi: ipmi_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>
Message-Id: <22375be2dd616d8ccc2959586a08e49a5ad9e47b.1709655755.git.u.kleine-koenig@pengutronix.de>
Signed-off-by: Corey Minyard <minyard@acm.org>
drivers/char/ipmi/ipmi_powernv.c