Skip to content

Commit 4ec0b2c

Browse files
morimotogregkh
authored andcommitted
ASoC: rsnd: don't call update callback if it was NULL
commit d7289565483c65094d0473555625a4acd89567d3 upstream. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Thong Ho <thong.ho.px@rvc.renesas.com> Signed-off-by: Nhan Nguyen <nhan.nguyen.yb@renesas.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 95fc5ef commit 4ec0b2c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/soc/sh/rcar/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,7 @@ static int rsnd_kctrl_put(struct snd_kcontrol *kctrl,
10161016
}
10171017
}
10181018

1019-
if (change)
1019+
if (change && cfg->update)
10201020
cfg->update(cfg->io, mod);
10211021

10221022
return change;

0 commit comments

Comments
 (0)