ASoC: topology: Remove unnecessary looping
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Fri, 1 Apr 2022 12:01:56 +0000 (14:01 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 4 Apr 2022 07:39:18 +0000 (08:39 +0100)
commit0db627c4f5df704d44699ed27dd81caa6d782a17
tree383136b1150a79ab1de833beb8373e02745103ee
parent395f8fd616086310c40ddc4e9686440f147d5c00
ASoC: topology: Remove unnecessary looping

Functions creating kcontrols as written allow for creation of multiple
kcontrols at the same time, but in practice they are called for each
kcontrol individually. Remove unnecessary loop as code always loops once
anyway. This reduces intendation level allowing for some code to be put
on one line instead of multiple lines.

Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://lore.kernel.org/r/20220401120200.4047867-3-amadeuszx.slawinski@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-topology.c