]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit25eb40dcc6004df3748f0348cd96022130f9fe32
tree383136b1150a79ab1de833beb8373e02745103ee
parent14359809d43ad8a9ec8c58c4619cc1e3b9f2bc36
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