ASoC: rt5663: add in missing loop counter to avoid infinite loop
authorColin Ian King <colin.king@canonical.com>
Mon, 10 Jul 2017 15:20:45 +0000 (16:20 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 17 Jul 2017 11:05:54 +0000 (12:05 +0100)
commit09b8852c759917e3ea10062b374692a5313cbfd8
treec84df63bc74711924258a4144655f3d548442372
parent1325734c97c533c2042794f2bd873486b4905cdb
ASoC: rt5663: add in missing loop counter to avoid infinite loop

The loop counter 'count' is missing an increment, so we could end up
with an infinite loop.  Add in a pre-increment to count to fix this.

Detected by CoverityScan, CID#1450120 ("Logically Dead Code")

Fixes: 1a425dbf1a10 ("ASoC: rt5663: Update the calibration funciton")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5663.c