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.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Takashi Iwai 2020-01-05 15:47:53 +01:00
parent 121f46be2c
commit 51d7847a2d
1 changed files with 2 additions and 2 deletions

View File

@ -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))