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

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: default avatarTakashi Iwai <tiwai@suse.de>
parent 121f46be
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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))