summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2026-10-02 21:11:19 +0800
committerMark Brown <broonie@kernel.org>2026-10-06 18:08:00 +0200
commit4e1b5ccf1eabdec851a443eab1b26118c5096482 (patch)
tree6db07d6af2d2d02d2a947301e89c1b8d56ed2436 /tools/perf/scripts/python/bin
parent7ca8aa98e2ba76274b6e4e20390f740fd1207fd8 (diff)
regcache: simplify control flow and reduce nesting
Move the count guard into regcache_hw_init() so callers don't need to check before calling, and flatten conditional blocks that wrap a single call by using early returns instead. Merge the two separate reg_defaults / num_reg_defaults sanity checks into a single expression, and drop unnecessary else-after-return in regcache_lookup_reg() and regcache_sync_block(). No functional change. Assisted-by: LLM Signed-off-by: Peng Fan <peng.fan@nxp.com> Link: https://patch.msgid.link/20261002-regmap-lock-2nd-v2-3-e172b0501c52@nxp.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions