diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2016-02-25 05:51:12 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-03-05 13:27:27 +0900 |
commit | d7289565483c65094d0473555625a4acd89567d3 (patch) | |
tree | 10e3b71207a38ceaa63cec90039dcf7d3e9732cb /sound/soc/sh | |
parent | 6a16c1765120abc8f58b2c5f275c95a33bb25572 (diff) | |
download | linux-d7289565483c65094d0473555625a4acd89567d3.tar.gz linux-d7289565483c65094d0473555625a4acd89567d3.tar.bz2 linux-d7289565483c65094d0473555625a4acd89567d3.zip |
ASoC: rsnd: don't call update callback if it was NULL
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sh')
-rw-r--r-- | sound/soc/sh/rcar/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |