From: Kuninori Morimoto Date: Thu, 25 Feb 2016 05:51:12 +0000 (+0000) Subject: ASoC: rsnd: don't call update callback if it was NULL X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d7289565483c65094d0473555625a4acd89567d3;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ASoC: rsnd: don't call update callback if it was NULL Signed-off-by: Kuninori Morimoto Signed-off-by: Mark Brown --- diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c index ba37b0d55b21..3a3dc2ff18c9 100644 --- a/sound/soc/sh/rcar/core.c +++ b/sound/soc/sh/rcar/core.c @@ -927,7 +927,7 @@ static int rsnd_kctrl_put(struct snd_kcontrol *kctrl, } } - if (change) + if (change && cfg->update) cfg->update(cfg->io, mod); return change;