[alsa-devel] [PATCH v2] ALSA: usb-audio: purge needless variable length array

Takashi Iwai tiwai at suse.de
Wed Feb 22 07:14:33 CET 2017


On Tue, 21 Feb 2017 23:54:47 +0100,
Takashi Sakamoto wrote:
> 
> 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: d2bb390a2081 ("ALSA: usb-audio: Tascam US-16x08 DSP mixer quirk")
> Signed-off-by: Takashi Sakamoto <o-takashi at sakamocchi.jp>

Applied, thanks.


Takashi


More information about the Alsa-devel mailing list