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>
This commit is contained in:
parent
95fc5ef854
commit
4ec0b2c2d2
|
@ -1016,7 +1016,7 @@ static int rsnd_kctrl_put(struct snd_kcontrol *kctrl,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (change)
|
if (change && cfg->update)
|
||||||
cfg->update(cfg->io, mod);
|
cfg->update(cfg->io, mod);
|
||||||
|
|
||||||
return change;
|
return change;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user