ALSA: usb: Avoid VLA in mixer_us16x08.c
authorTakashi Iwai <tiwai@suse.de>
Tue, 30 May 2017 21:24:45 +0000 (23:24 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 31 May 2017 06:46:19 +0000 (08:46 +0200)
commite49a14fa36aeb72476e038fcde96c151b7e4ecc8
treec4457b641b8a8b6fcc70ed679c1a20c8aa544cb7
parent617163fc2580da3d489b6c1bacb6312e0e2aac02
ALSA: usb: Avoid VLA in mixer_us16x08.c

This is another attempt to work around the VLA used in
mixer_us16x08.c.  Basically the temporary array is used individually
for two cases, and we can declare locally in each block, instead of
hackish max() usage.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer_us16x08.c