summaryrefslogtreecommitdiffstats
path: root/drivers/soundwire/generic_bandwidth_allocation.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2023-11-05 22:44:09 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-11-23 20:31:08 +0100
commitaa46b225ebbfa7ff96aef431879e8bbc159071e5 (patch)
tree33d0047678cb63d9a6e32a92aaa90a46ced12a61 /drivers/soundwire/generic_bandwidth_allocation.c
parenttty: hvc: Make hvc_remove() return no value (diff)
downloadlinux-aa46b225ebbfa7ff96aef431879e8bbc159071e5.tar.xz
linux-aa46b225ebbfa7ff96aef431879e8bbc159071e5.zip
tty: hvc: hvc_opal: 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> Reviewed-by: Nicholas Piggin <npiggin@gmail.com> Link: https://lore.kernel.org/r/20231105214406.3765906-6-u.kleine-koenig@pengutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/soundwire/generic_bandwidth_allocation.c')
0 files changed, 0 insertions, 0 deletions