Skip to content

Commit a64db0b

Browse files
takaswietiwai
authored andcommitted
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>
1 parent d17f0ce commit a64db0b

File tree

1 file changed

+1
-1
lines changed
  • sound/firewire/fireface

1 file changed

+1
-1
lines changed

sound/firewire/fireface/ff.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ MODULE_LICENSE("GPL");
1616
static void name_card(struct snd_ff *ff)
1717
{
1818
struct fw_device *fw_dev = fw_parent_device(ff->unit);
19-
const char *const names[] = {
19+
static const char *const names[] = {
2020
[SND_FF_UNIT_VERSION_FF800] = "Fireface800",
2121
[SND_FF_UNIT_VERSION_FF400] = "Fireface400",
2222
[SND_FF_UNIT_VERSION_UFX] = "FirefaceUFX",

0 commit comments

Comments
 (0)