diff options
author | 2024-12-27 23:32:30 +0100 | |
---|---|---|
committer | 2025-01-07 23:46:11 +0100 | |
commit | 494fed6809585b8386072cf96ef2426e7a7c6326 (patch) | |
tree | b67a7af7ffb8d5ca1fbac36d2acbaab56d990d01 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | i2c: qcom-geni: Use dev_err_probe in the probe function (diff) | |
download | wireguard-linux-494fed6809585b8386072cf96ef2426e7a7c6326.tar.xz wireguard-linux-494fed6809585b8386072cf96ef2426e7a7c6326.zip |
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/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions