aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/sound
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2014-05-20 14:23:10 +0200
committerMark Brown <broonie@linaro.org>2014-05-20 22:53:36 +0100
commitcf7b71f46b1c2f0376c373e10e5eee1b1fa3cd12 (patch)
tree9977d42924c430011cceae14fc4f2c5a522e8394 /Documentation/devicetree/bindings/sound
parentLinux 3.15-rc1 (diff)
downloadlinux-dev-cf7b71f46b1c2f0376c373e10e5eee1b1fa3cd12.tar.xz
linux-dev-cf7b71f46b1c2f0376c373e10e5eee1b1fa3cd12.zip
ASoC: ad1980: Replace goto loop with do-while loop
Using a proper do-while loop here instead of a open-coded goto loop is both cleaner and shorter. Also fixes the following warnings from smatch: sound/soc/codecs/ad1980.c:213 ad1980_reset() info: loop could be replaced with if statement. sound/soc/codecs/ad1980.c:212 ad1980_reset() info: ignoring unreachable code. sound/soc/codecs/ad1980.c:215 ad1980_reset() info: ignoring unreachable code. While we are at it also change retry_cnt to unsigned int, using u16 for a on-stack loop counter doesn't make that much sense. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'Documentation/devicetree/bindings/sound')
0 files changed, 0 insertions, 0 deletions