]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: cs35l56-test: Remove pointless duplicate loop counters
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Mon, 9 Mar 2026 11:56:51 +0000 (11:56 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 9 Mar 2026 13:44:35 +0000 (13:44 +0000)
commit66f71ec3539e0e724f5099e6d4bbc81db4d9954a
treedd2cb5e2d8ae4a7c12b44c68286cf47eb4881050
parenta2614f29ee37841638a2ca852da7f83aac6756dc
ASoC: cs35l56-test: Remove pointless duplicate loop counters

In cs35l56_test_parse_xu_onchip_spkid() the first two loops used
local i to index an array and num_gpios/num_pulls to count how
many entries it had seen. But both i and num_* started at 0 and
incremented on each loop so were identical. Remove i from these
loops.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://patch.msgid.link/20260309115651.1090368-1-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs35l56-test.c