summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorLuca Ceresoli <luca.ceresoli@bootlin.com>2026-08-14 16:05:50 +0200
committerLuca Ceresoli <luca.ceresoli@bootlin.com>2026-09-02 20:12:56 +0200
commit97c594f71fa71dc30a0583a76d8b6ef5c5ea10b1 (patch)
treeddc45fca78d4c47c31ef2631c7d56342d7838345 /tools/perf/scripts/python/stackcollapse.py
parent5a859b820ddf99e084b7fef2ec520b2df90a0a19 (diff)
downloadlinux-97c594f71fa71dc30a0583a76d8b6ef5c5ea10b1.tar.gz
linux-97c594f71fa71dc30a0583a76d8b6ef5c5ea10b1.zip
drm: of: drm_of_find_panel_or_bridge: simplify error return paths
In prepataion to further modify the logic of this function, simplify the error-returning code. With this change, on any error there is an immediate 'return -<ERRNO>;' statement, without having to carry on the return value until the end. Additionally, clear both the panel and the bridge pointers at the beginning. Even though this is redundant in some code paths, it allows to have a simpler code in the rest of the function. Reviewed-by: Maxime Ripard <mripard@kernel.org> Link: https://patch.msgid.link/20260814-drm-bridge-every-panel-v1-2-19cd5277cc8d@bootlin.com Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions