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:
parent
121f46be2c
commit
51d7847a2d
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue