ALSA: oxfw: make read-only const array models static
authorColin Ian King <colin.i.king@gmail.com>
Tue, 27 Jun 2023 11:32:53 +0000 (12:32 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 28 Jun 2023 09:42:29 +0000 (11:42 +0200)
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>
sound/firewire/oxfw/oxfw.c

index 9523479..63d40f1 100644 (file)
@@ -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",