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)
commit395f8fd616086310c40ddc4e9686440f147d5c00
treeded2cbc2193a1e1434a5c2f651dccab63cda6c3b
parent3123109284176b1532874591f7c81f3837bbdc17
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