projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d17f0ce
)
ALSA: fireface: make read-only const array for model names static
author
Takashi Sakamoto
<o-takashi@sakamocchi.jp>
Tue, 27 Jun 2023 23:54:06 +0000
(08:54 +0900)
committer
Takashi Iwai
<tiwai@suse.de>
Wed, 28 Jun 2023 09:42:55 +0000
(11:42 +0200)
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>
sound/firewire/fireface/ff.c
patch
|
blob
|
history
diff --git
a/sound/firewire/fireface/ff.c
b/sound/firewire/fireface/ff.c
index 82241058ea14cb66cb4c5fdf3c173259c388b4a9..6e84e4787259e7f13040a580305fa0354c601c7a 100644
(file)
--- a/
sound/firewire/fireface/ff.c
+++ b/
sound/firewire/fireface/ff.c
@@
-16,7
+16,7
@@
MODULE_LICENSE("GPL");
static void name_card(struct snd_ff *ff)
{
struct fw_device *fw_dev = fw_parent_device(ff->unit);
- const char *const names[] = {
+
static
const char *const names[] = {
[SND_FF_UNIT_VERSION_FF800] = "Fireface800",
[SND_FF_UNIT_VERSION_FF400] = "Fireface400",
[SND_FF_UNIT_VERSION_UFX] = "FirefaceUFX",