Skip to content

Commit

Permalink
ALSA: emu10k1: constify snd_emux_operators structure
Browse files Browse the repository at this point in the history
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 <bhumirks@gmail.com>
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Bhumika Goyal authored and Takashi Iwai committed Feb 19, 2017
1 parent b1ef30e commit 3bb9eca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/pci/emu10k1/emu10k1_callback.c
Original file line number Diff line number Diff line change
@@ -61,7 +61,7 @@ static void set_filterQ(struct snd_emu10k1 *hw, struct snd_emux_voice *vp);
/*
* set up operators
*/
static struct snd_emux_operators emu10k1_ops = {
static const struct snd_emux_operators emu10k1_ops = {
.owner = THIS_MODULE,
.get_voice = get_voice,
.prepare = start_voice,

0 comments on commit 3bb9eca

Please sign in to comment.