Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ALSA: fireface: make read-only const array for model names static

It is preferable not to populate the constant array for constant strings
on the stack.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20230627235406.289970-1-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by

Takashi Sakamoto and committed by
Takashi Iwai
a64db0b9 d17f0ce9

+1 -1
+1 -1
sound/firewire/fireface/ff.c
··· 16 16 static void name_card(struct snd_ff *ff) 17 17 { 18 18 struct fw_device *fw_dev = fw_parent_device(ff->unit); 19 - const char *const names[] = { 19 + static const char *const names[] = { 20 20 [SND_FF_UNIT_VERSION_FF800] = "Fireface800", 21 21 [SND_FF_UNIT_VERSION_FF400] = "Fireface400", 22 22 [SND_FF_UNIT_VERSION_UFX] = "FirefaceUFX",