diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2023-06-27 12:32:53 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2023-06-28 11:42:29 +0200 |
commit | d17f0ce9a9ee1372b9c71b4dc9bd6c8fbe73790f (patch) | |
tree | c6f4231bf764979144dcee92201442a6ea875a79 /sound/firewire | |
parent | d6048fdc870240e5020343f8af0c825829c232bd (diff) | |
download | linux-stable-d17f0ce9a9ee1372b9c71b4dc9bd6c8fbe73790f.tar.gz linux-stable-d17f0ce9a9ee1372b9c71b4dc9bd6c8fbe73790f.tar.bz2 linux-stable-d17f0ce9a9ee1372b9c71b4dc9bd6c8fbe73790f.zip |
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/firewire')
-rw-r--r-- | sound/firewire/oxfw/oxfw.c | 2 |
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", |