ASoC: rsnd: don't call update callback if it was NULL
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 25 Feb 2016 05:51:12 +0000 (05:51 +0000)
committerMark Brown <broonie@kernel.org>
Sat, 5 Mar 2016 04:27:27 +0000 (13:27 +0900)
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/core.c

index ba37b0d55b21862db9e109f2f2e56a9ca683e8df..3a3dc2ff18c9e163e8347a554812c826a5523caa 100644 (file)
@@ -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;