]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: topology: Use for loop instead of while
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Fri, 1 Apr 2022 12:01:55 +0000 (14:01 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 4 Apr 2022 07:39:17 +0000 (08:39 +0100)
commit14359809d43ad8a9ec8c58c4619cc1e3b9f2bc36
treeded2cbc2193a1e1434a5c2f651dccab63cda6c3b
parent6d94017b7b59bab528be97be158d0d602982e3a6
ASoC: topology: Use for loop instead of while

The 'while' loop can be replaced with a 'for' loop, making it more clear
about what possible values there are, by having all of it in one place,
instead of scattered around.

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-2-amadeuszx.slawinski@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-topology.c