aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sound/core
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-01-05 15:47:53 +0100
committerTakashi Iwai <tiwai@suse.de>2020-01-05 16:14:57 +0100
commit51d7847a2d81ac6779b62fabd722b49b3b664de9 (patch)
tree92c1cc61125fb4b392ae675bc446bc206f0a6101 /sound/core
parentALSA: sparc: More constifications (diff)
downloadwireguard-linux-51d7847a2d81ac6779b62fabd722b49b3b664de9.tar.xz
wireguard-linux-51d7847a2d81ac6779b62fabd722b49b3b664de9.zip
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>
Diffstat (limited to 'sound/core')
-rw-r--r--sound/core/info.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/core/info.c b/sound/core/info.c
index e051a029ccfb..6801d8160866 100644
--- a/sound/core/info.c
+++ b/sound/core/info.c
@@ -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))