summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2023-06-27 14:32:53 +0300
committerTakashi Iwai <tiwai@suse.de>2023-06-28 12:42:29 +0300
commitd17f0ce9a9ee1372b9c71b4dc9bd6c8fbe73790f (patch)
treec6f4231bf764979144dcee92201442a6ea875a79 /sound
parentd6048fdc870240e5020343f8af0c825829c232bd (diff)
downloadlinux-d17f0ce9a9ee1372b9c71b4dc9bd6c8fbe73790f.tar.xz
ALSA: oxfw: make read-only const array models static
Don't populate the const array on the stack, instead make it static. Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Link: https://lore.kernel.org/r/20230627113253.700065-1-colin.i.king@gmail.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/firewire/oxfw/oxfw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/firewire/oxfw/oxfw.c b/sound/firewire/oxfw/oxfw.c
index 9523479fa94a..63d40f1a914f 100644
--- a/sound/firewire/oxfw/oxfw.c
+++ b/sound/firewire/oxfw/oxfw.c
@@ -44,7 +44,7 @@ struct compat_info {
static bool detect_loud_models(struct fw_unit *unit)
{
- const char *const models[] = {
+ static const char *const models[] = {
"Onyxi",
"Onyx-i",
"Onyx 1640i",