Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1 -1
+1 -1
sound/core/rawmidi.c
··· 249 249 { 250 250 struct snd_rawmidi_substream *substream; 251 251 struct snd_rawmidi_str *s = &rmidi->streams[stream]; 252 - static unsigned int info_flags[2] = { 252 + static const unsigned int info_flags[2] = { 253 253 [SNDRV_RAWMIDI_STREAM_OUTPUT] = SNDRV_RAWMIDI_INFO_OUTPUT, 254 254 [SNDRV_RAWMIDI_STREAM_INPUT] = SNDRV_RAWMIDI_INFO_INPUT, 255 255 };