mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 05:04:02 +02:00
ALSA: aloop: make read-only array texts static const
Don't populate the read-only const array texts on the stack at run time, instead make it static. Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Link: https://patch.msgid.link/20260714163316.183165-1-colin.i.king@gmail.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
6873ab65f4
commit
4392569d95
|
|
@ -1668,7 +1668,7 @@ static int loopback_channels_get(struct snd_kcontrol *kcontrol,
|
|||
static int loopback_access_info(struct snd_kcontrol *kcontrol,
|
||||
struct snd_ctl_elem_info *uinfo)
|
||||
{
|
||||
const char * const texts[] = {"Interleaved", "Non-interleaved"};
|
||||
static const char * const texts[] = {"Interleaved", "Non-interleaved"};
|
||||
|
||||
return snd_ctl_enum_info(uinfo, 1, ARRAY_SIZE(texts), texts);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user