summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/gecko.py
diff options
context:
space:
mode:
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>2024-06-27 13:18:38 +0300
committerMark Brown <broonie@kernel.org>2024-07-02 16:26:57 +0300
commit97a05cb4ab12f55e19cf28f6ceca47bb6ed8fea4 (patch)
treeef659d96f26fdeb45af2018ddcadb23b263596dd /tools/perf/scripts/python/gecko.py
parenta893a804c6bb09336a217780c722b7d1c88357c6 (diff)
downloadlinux-97a05cb4ab12f55e19cf28f6ceca47bb6ed8fea4.tar.xz
ASoC: topology: Simplify code
Instead of using goto, when there is no controls, just do a loop when there are. Overall the check seems to be a bit redundant as num_kcontrols will only be above 0 if kcontrols are set anyway, but let's keep it, while simplifying code. Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com> Link: https://patch.msgid.link/20240627101850.2191513-2-amadeuszx.slawinski@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions