Commit 51d7847a authored by Takashi Iwai's avatar Takashi Iwai

ALSA: info: More constifications

Apply const prefix to the string array and its callers.

Just for minor optimization and no functional changes.

Link: https://lore.kernel.org/r/20200105144823.29547-39-tiwai@suse.deSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 121f46be
......@@ -20,7 +20,7 @@
int snd_info_check_reserved_words(const char *str)
{
static char *reserved[] =
static const char * const reserved[] =
{
"version",
"meminfo",
......@@ -35,7 +35,7 @@ int snd_info_check_reserved_words(const char *str)
"seq",
NULL
};
char **xstr = reserved;
const char * const *xstr = reserved;
while (*xstr) {
if (!strcmp(*xstr, str))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment