diff options
author | Andi Shyti <andi.shyti@kernel.org> | 2024-12-27 23:32:30 +0100 |
---|---|---|
committer | Andi Shyti <andi.shyti@kernel.org> | 2025-01-07 23:46:11 +0100 |
commit | 494fed6809585b8386072cf96ef2426e7a7c6326 (patch) | |
tree | b67a7af7ffb8d5ca1fbac36d2acbaab56d990d01 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bfb3ddfdc5fb7904ba5c7870cfec9efabc9a4f83 (diff) |
i2c: qcom-geni: Simplify error handling in probe function
Avoid repeating the error handling pattern:
geni_se_resources_off(&gi2c->se);
clk_disable_unprepare(gi2c->core_clk);
return;
Introduce a single 'goto' exit label for cleanup in case of
errors. While there are currently two distinct exit points, there
is no overlap in their handling, allowing both branches to
coexist cleanly.
Reviewed-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Link: https://lore.kernel.org/r/20241227223230.462395-3-andi.shyti@kernel.org
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions