Skip to content

Commit 3bb9eca

Browse files
goyalbhumikatiwai
authored andcommitted
ALSA: emu10k1: constify snd_emux_operators structure
Declare snd_emux_operators structure as const as it is only copied into another structure. So, snd_emux_operators structures having this property can be made const. Signed-off-by: Bhumika Goyal <[email protected]> Reviewed-by: Takashi Sakamoto <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
1 parent b1ef30e commit 3bb9eca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/pci/emu10k1/emu10k1_callback.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ static void set_filterQ(struct snd_emu10k1 *hw, struct snd_emux_voice *vp);
6161
/*
6262
* set up operators
6363
*/
64-
static struct snd_emux_operators emu10k1_ops = {
64+
static const struct snd_emux_operators emu10k1_ops = {
6565
.owner = THIS_MODULE,
6666
.get_voice = get_voice,
6767
.prepare = start_voice,

0 commit comments

Comments
 (0)