]> Git Repo - linux.git/commitdiff
ALSA: oxfw: make read-only const array models static
authorColin Ian King <[email protected]>
Tue, 27 Jun 2023 11:32:53 +0000 (12:32 +0100)
committerTakashi Iwai <[email protected]>
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 <[email protected]>
Reviewed-by: Takashi Sakamoto <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
sound/firewire/oxfw/oxfw.c

index 9523479fa94a4e541f41b620b0517c5ec9925a55..63d40f1a914f8c710bcdc2e57cf3794102d475b7 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",
This page took 0.061855 seconds and 4 git commands to generate.