summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2024-04-09 12:12:04 +0300
committerJakub Kicinski <kuba@kernel.org>2024-04-11 05:35:50 +0300
commit07409cf728448bf4b79a33b75f498cbff439354a (patch)
tree4ab0eeb5dbb083d93f0e1dc0fa38443105fff2b6 /tools/perf/scripts/python
parent4ede457542a615b08b1f25a25cb514402d033968 (diff)
downloadlinux-07409cf728448bf4b79a33b75f498cbff439354a.tar.xz
net: wan: fsl_qmc_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. 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/20240409091203.39062-2-u.kleine-koenig@pengutronix.de Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions