aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2023-06-27 12:32:53 +0100
committerTakashi Iwai <[email protected]>2023-06-28 11:42:29 +0200
commitd17f0ce9a9ee1372b9c71b4dc9bd6c8fbe73790f (patch)
treec6f4231bf764979144dcee92201442a6ea875a79
parentd6048fdc870240e5020343f8af0c825829c232bd (diff)
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 <[email protected]> Reviewed-by: Takashi Sakamoto <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
-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",