summaryrefslogtreecommitdiffstats
path: root/sound/core/rawmidi.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-01-05 15:47:56 +0100
committerTakashi Iwai <tiwai@suse.de>2020-01-05 16:14:58 +0100
commitedb87ed5f9f180fecca64f803eb1f595291d519d (patch)
tree13566631764d436e02c38c939ac8912bac6f9607 /sound/core/rawmidi.c
parentb40fe4bbc76bf6be655f9ba975dc91c6a72fe79e (diff)
downloadlinux-stable-edb87ed5f9f180fecca64f803eb1f595291d519d.tar.gz
linux-stable-edb87ed5f9f180fecca64f803eb1f595291d519d.tar.bz2
linux-stable-edb87ed5f9f180fecca64f803eb1f595291d519d.zip
ALSA: rawmidi: More constification
Apply const prefix to the static flag info table. Just for minor optimization and no functional changes. Link: https://lore.kernel.org/r/20200105144823.29547-42-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/rawmidi.c')
-rw-r--r--sound/core/rawmidi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/rawmidi.c b/sound/core/rawmidi.c
index 7bc95c24f724..20dd08e1f675 100644
--- a/sound/core/rawmidi.c
+++ b/sound/core/rawmidi.c
@@ -249,7 +249,7 @@ static int assign_substream(struct snd_rawmidi *rmidi, int subdevice,
{
struct snd_rawmidi_substream *substream;
struct snd_rawmidi_str *s = &rmidi->streams[stream];
- static unsigned int info_flags[2] = {
+ static const unsigned int info_flags[2] = {
[SNDRV_RAWMIDI_STREAM_OUTPUT] = SNDRV_RAWMIDI_INFO_OUTPUT,
[SNDRV_RAWMIDI_STREAM_INPUT] = SNDRV_RAWMIDI_INFO_INPUT,
};