android_kernel_xiaomi_sm8350/sound/pci
Arnd Bergmann 13f99ebdd6 ALSA: au88x0: avoid theoretical uninitialized access
The latest gcc-7.0.1 snapshot points out that we if nr_ch is zero, we never
initialize some variables:

sound/pci/au88x0/au88x0_core.c: In function 'vortex_adb_allocroute':
sound/pci/au88x0/au88x0_core.c:2304:68: error: 'mix[0]' may be used uninitialized in this function [-Werror=maybe-uninitialized]
sound/pci/au88x0/au88x0_core.c:2305:58: error: 'src[0]' may be used uninitialized in this function [-Werror=maybe-uninitialized]

I assume this can never happen in practice, but adding a check here doesn't
hurt either and avoids the warning. The code has been unchanged since
the start of git history.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2017-03-24 11:59:51 +01:00
..
ac97 scripts/spelling.txt: add "swith" pattern and fix typo instances 2017-02-27 18:43:46 -08:00
ali5451
asihpi
au88x0 ALSA: au88x0: avoid theoretical uninitialized access 2017-03-24 11:59:51 +01:00
aw2 ALSA: pci: constify snd_kcontrol_new structures 2017-02-21 22:01:21 +01:00
ca0106 ALSA: pci: constify snd_kcontrol_new structures 2017-02-21 22:01:21 +01:00
cs46xx scripts/spelling.txt: add "overwriten" pattern and fix typo instances 2017-02-27 18:43:47 -08:00
cs5535audio ALSA: cs5535audio: fix unused warnings on resume/suspend 2016-12-28 16:05:12 +01:00
ctxfi ALSA: ctxfi: Fix the incorrect check of dma_set_mask() call 2017-03-20 10:08:19 +01:00
echoaudio ALSA: pci: constify snd_kcontrol_new structures 2017-02-21 22:01:21 +01:00
emu10k1 ALSA: pci: constify snd_kcontrol_new structures 2017-02-21 22:01:21 +01:00
hda ALSA: hda/ca0132: Remove double parentheses 2017-03-20 12:55:01 +01:00
ice1712 Merge branch 'topic/for-4.12' into for-next 2017-03-20 12:24:26 +01:00
korg1212 lib/vsprintf.c: remove %Z support 2017-02-27 18:43:47 -08:00
lola ALSA: pci: constify snd_kcontrol_new structures 2017-02-21 22:01:21 +01:00
lx6464es ALSA: pci: constify snd_kcontrol_new structures 2017-02-21 22:01:21 +01:00
mixart ALSA: pci: constify snd_kcontrol_new structures 2017-02-21 22:01:21 +01:00
nm256
oxygen
pcxhr Merge branch 'topic/for-4.12' into for-next 2017-03-20 12:24:26 +01:00
riptide
rme9652 ALSA: pci: Constify snd_rawmidi_ops 2017-01-12 12:50:26 +01:00
trident ALSA: pci: constify snd_kcontrol_new structures 2017-02-21 22:01:21 +01:00
vx222 ALSA: pci: constify snd_kcontrol_new structures 2017-02-21 22:01:21 +01:00
ymfpci ALSA: pci: constify snd_kcontrol_new structures 2017-02-21 22:01:21 +01:00
ad1889.c
ad1889.h
ak4531_codec.c
als300.c
als4000.c
atiixp_modem.c
atiixp.c
azt3328.c
azt3328.h
bt87x.c ALSA: pci: constify snd_kcontrol_new structures 2017-02-21 22:01:21 +01:00
cmipci.c ALSA: pci: constify snd_kcontrol_new structures 2017-02-21 22:01:21 +01:00
cs4281.c ALSA: pci: constify snd_kcontrol_new structures 2017-02-21 22:01:21 +01:00
cs5530.c
ens1370.c ALSA: pci: constify snd_kcontrol_new structures 2017-02-21 22:01:21 +01:00
ens1371.c
es1938.c
es1968.c
fm801.c
intel8x0.c
intel8x0m.c
Kconfig
maestro3.c
Makefile
rme32.c
rme96.c
sis7019.c
sis7019.h
sonicvibes.c
via82xx_modem.c
via82xx.c ALSA: pci: constify snd_kcontrol_new structures 2017-02-21 22:01:21 +01:00