Skip to content

Commit d17f0ce

Browse files
ColinIanKingtiwai
authored andcommitted
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]>
1 parent d6048fd commit d17f0ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/firewire/oxfw/oxfw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ struct compat_info {
4444

4545
static bool detect_loud_models(struct fw_unit *unit)
4646
{
47-
const char *const models[] = {
47+
static const char *const models[] = {
4848
"Onyxi",
4949
"Onyx-i",
5050
"Onyx 1640i",

0 commit comments

Comments
 (0)