projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6048fd
)
ALSA: oxfw: make read-only const array models static
author
Colin Ian King
<colin.i.king@gmail.com>
Tue, 27 Jun 2023 11:32:53 +0000
(12:32 +0100)
committer
Takashi 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
patch
|
blob
|
history
diff --git
a/sound/firewire/oxfw/oxfw.c
b/sound/firewire/oxfw/oxfw.c
index 9523479fa94a4e541f41b620b0517c5ec9925a55..63d40f1a914f8c710bcdc2e57cf3794102d475b7 100644
(file)
--- 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",