]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: topology: Simplify code
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Thu, 27 Jun 2024 10:18:38 +0000 (12:18 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 2 Jul 2024 13:26:57 +0000 (14:26 +0100)
commit97a05cb4ab12f55e19cf28f6ceca47bb6ed8fea4
treeef659d96f26fdeb45af2018ddcadb23b263596dd
parenta893a804c6bb09336a217780c722b7d1c88357c6
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>
sound/soc/soc-topology.c