[alsa-devel] [asoc:for-next 99/101] sound/soc/codecs/sta529.c:400:10: warning: 'ret' may be used uninitialized in this function

wfg at linux.intel.com wfg at linux.intel.com
Wed Jul 4 14:39:16 CEST 2012


Hi Rajeev,

There are new compile warnings show up in

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
head:   5a6bb2006960eab999dc7023b344bfdbb82e3059
commit: 3be58dbb92871442191188ae51b449e1a9f0fe64 [99/101] ASoC: STA529: Add support for STA529 Audio Codec

All warnings:

sound/soc/codecs/sta529.c: In function 'sta529_i2c_probe':
sound/soc/codecs/sta529.c:400:10: warning: 'ret' may be used uninitialized in this function [-Wuninitialized]

vim +400 sound/soc/codecs/sta529.c
   397	
   398		sta529->regmap = devm_regmap_init_i2c(i2c, &sta529_regmap);
   399		if (IS_ERR(sta529->regmap)) {
 > 400			dev_err(&i2c->dev, "Failed to allocate regmap: %d\n", ret);
   401			return PTR_ERR(sta529->regmap);
   402		}
   403	

---
0-DAY kernel build testing backend         Open Source Technology Centre
Fengguang Wu <wfg at linux.intel.com>                     Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ASoC-STA529-Add-support-for-STA529-Audio-Codec.patch
Type: text/x-diff
Size: 15580 bytes
Desc: not available
Url : http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20120704/5ea1763e/attachment-0001.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sta529.c
Type: text/x-csrc
Size: 10750 bytes
Desc: not available
Url : http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20120704/5ea1763e/attachment-0001.c 


More information about the Alsa-devel mailing list