aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2016-09-15 15:42:21 +0000
committerMark Brown <[email protected]>2016-09-16 15:47:28 +0000
commit56efaed524dc2c3571f66d296cb1efbd59cb2996 (patch)
treef46bd8cea3894281261b02a2ec6bbc87a7adf0c6 /scripts/gcc-plugins/cyc_complexity_plugin.c
parentASoC: add rt5663 codec driver (diff)
downloadkernel-56efaed524dc2c3571f66d296cb1efbd59cb2996.tar.gz
kernel-56efaed524dc2c3571f66d296cb1efbd59cb2996.zip
ASoC: rt5663: refine error handling
The newly added rt5663 codec driver introduces a couple of warnings when built with -Wmaybe-uninitialized: codecs/rt5663.c: In function 'rt5663_set_tdm_slot': codecs/rt5663.c:2680:2: error: 'reg' may be used uninitialized in this function [-Werror=maybe-uninitialized] codecs/rt5663.c: In function 'rt5663_set_dai_pll': codecs/rt5663.c:2556:12: error: 'shift' may be used uninitialized in this function [-Werror=maybe-uninitialized] codecs/rt5663.c:2596:2: error: 'mask' may be used uninitialized in this function [-Werror=maybe-uninitialized] We can avoid those warnings by always returning an error from the switch() statements instead of falling through with an uninitialized variable when we hit an unexpected case. Signed-off-by: Arnd Bergmann <[email protected]> Fixes: df7c52168ee1 ("ASoC: add rt5663 codec driver") Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions