diff options
author | Axel Lin <axel.lin@gmail.com> | 2010-11-24 15:40:59 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-11-25 22:15:35 +0100 |
commit | fe99b55994f08d321cc5f621c3634b1de4961d01 (patch) | |
tree | 541b0d0479e01344c6a2080fb09ebb6d12e4c66f /crypto/ecb.c | |
parent | ASoC: davinci-vcif - fix a memory leak (diff) | |
download | linux-fe99b55994f08d321cc5f621c3634b1de4961d01.tar.xz linux-fe99b55994f08d321cc5f621c3634b1de4961d01.zip |
ASoC: tlv320aic3x - fix variable may be used uninitialized warning
If aic3x_read failed , val is used uninitialized.
Fix it by initializing val to 0.
This patch fixes below compile warning:
sound/soc/codecs/tlv320aic3x.c: In function 'aic3x_get_gpio':
sound/soc/codecs/tlv320aic3x.c:1183: warning: 'val' may be used uninitialized in this function
sound/soc/codecs/tlv320aic3x.c: In function 'aic3x_headset_detected':
sound/soc/codecs/tlv320aic3x.c:1211: warning: 'val' may be used uninitialized in this function
sound/soc/codecs/tlv320aic3x.c: In function 'aic3x_button_pressed':
sound/soc/codecs/tlv320aic3x.c:1219: warning: 'val' may be used uninitialized in this function
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'crypto/ecb.c')
0 files changed, 0 insertions, 0 deletions