summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2023-03-21 18:40:39 +0300
committerBjorn Andersson <andersson@kernel.org>2023-04-06 06:58:32 +0300
commit38be89514b88f53ff772d1e016a68b59814aef72 (patch)
treedcc3145a759953827af3591c4dde19f5ac794f8f /tools/perf/scripts/python/exported-sql-viewer.py
parent49446e573bf591eef71c1e8c7cf87ec19aa2569f (diff)
downloadlinux-38be89514b88f53ff772d1e016a68b59814aef72.tar.xz
rpmsg: qcom_smd: 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 (mostly) ignored 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. qcom_smd_remove() always returned zero, though that isn't completely trivial to see. So explain that in a comment and convert to .remove_new(). Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Bjorn Andersson <andersson@kernel.org> Link: https://lore.kernel.org/r/20230321154039.355098-4-u.kleine-koenig@pengutronix.de
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions