linux/sound/pci/au88x0
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
..
au88x0_a3d.c ALSA: pci: constify snd_kcontrol_new structures 2017-02-21 22:01:21 +01:00
au88x0_a3d.h
au88x0_a3ddata.c
au88x0_core.c ALSA: au88x0: avoid theoretical uninitialized access 2017-03-24 11:59:51 +01:00
au88x0_eq.c ALSA: pci: constify snd_kcontrol_new structures 2017-02-21 22:01:21 +01:00
au88x0_eq.h
au88x0_eqdata.c
au88x0_game.c ALSA: pci: don't opencode IS_REACHABLE() 2016-11-13 21:33:41 +01:00
au88x0_mixer.c ALSA: pci: remove __dev* attributes 2012-12-07 07:20:55 +01:00
au88x0_mpu401.c ALSA: au88x0: pr_* replaced with dev_* 2014-10-15 12:03:18 +02:00
au88x0_pcm.c ALSA: pci: constify snd_kcontrol_new structures 2017-02-21 22:01:21 +01:00
au88x0_synth.c ALSA: au88x0: pr_* replaced with dev_* 2014-10-15 12:03:18 +02:00
au88x0_wt.h
au88x0_xtalk.c ALSA: Au88x0 - Fix Xtalk's constants 2012-01-08 14:35:40 +01:00
au88x0_xtalk.h
au88x0.c ALSA: remove deprecated use of pci api 2015-04-16 12:19:52 +02:00
au88x0.h ALSA: au88x0: Remove superfluous ifdef __KERNEL__ 2015-01-28 17:26:45 +01:00
au8810.c PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
au8810.h ALSA: au88x0 - Use a better name for pcm devices of au88x0 2011-04-26 12:27:21 +02:00
au8820.c PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
au8820.h ALSA: au88x0 - Use a better name for pcm devices of au88x0 2011-04-26 12:27:21 +02:00
au8830.c PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
au8830.h ALSA: au88x0 - Use a better name for pcm devices of au88x0 2011-04-26 12:27:21 +02:00
Makefile