]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: purge needless variable length array
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Tue, 21 Feb 2017 22:54:47 +0000 (07:54 +0900)
committerTakashi Iwai <tiwai@suse.de>
Wed, 22 Feb 2017 06:12:23 +0000 (07:12 +0100)
commitabc8e705b1a5f8f745f8e3fd29a8bdd980d7f6d4
tree64c4160ed7b44550cbda1e173914fde3feb137e7
parent75bc4cf3242ad50ac1d2b6ab1f058aa948627569
ALSA: usb-audio: purge needless variable length array

Variable length array is used in 'snd_us16x08_meter_get()', while there
is no need. It's better to purge it because variable length array has
overhead for stack handling.

This commit replaces the array with static length. Sparse generated below
warning.

sound/usb/mixer_us16x08.c:714:18: warning: Variable length array is used.

Fixes: f04604cb11ad ("ALSA: usb-audio: Tascam US-16x08 DSP mixer quirk")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer_us16x08.c