tmp_suning_uos_patched/sound/mips
Arnd Bergmann 8b169cb27c ALSA: mips: avoid potential uninitialized variable use
MIPS allmodconfig results in this warning:

sound/mips/hal2.c: In function 'hal2_gain_get':
sound/mips/hal2.c:224:35: error: 'r' may be used uninitialized in this function [-Werror=maybe-uninitialized]
sound/mips/hal2.c:223:35: error: 'l' may be used uninitialized in this function [-Werror=maybe-uninitialized]
sound/mips/hal2.c: In function 'hal2_gain_put':
sound/mips/hal2.c:260:13: error: 'new' may be used uninitialized in this function [-Werror=maybe-uninitialized]
sound/mips/hal2.c:260:13: error: 'old' may be used uninitialized in this function [-Werror=maybe-uninitialized]

Returning an error for all unexpected cases shuts up the warning

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2017-01-16 14:33:42 +01:00
..
ad1843.c ALSA: mips/ad1843: Use WARN_ON() instead of BUG_ON() 2013-11-06 08:35:16 +01:00
hal2.c ALSA: mips: avoid potential uninitialized variable use 2017-01-16 14:33:42 +01:00
hal2.h ALSA: ALSA driver for SGI HAL2 audio device 2008-07-14 09:00:57 +02:00
Kconfig ALSA: Remove deprecated AU1X00 AC97 driver 2016-02-08 08:17:15 +01:00
Makefile ALSA: Remove deprecated AU1X00 AC97 driver 2016-02-08 08:17:15 +01:00
sgio2audio.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00