ASoC: remove unneeded dai->driver->ops check
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 25 Sep 2017 01:38:54 +0000 (01:38 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 25 Sep 2017 16:30:50 +0000 (17:30 +0100)
commit9900a4226c785dbb32c08af5ae8fbbf1fc4c31d0
tree8d809c90ce811ebb786c2a655b5489eb98bdbb72
parent464719255e095b0cc05a30b124f2cdc67a930d7f
ASoC: remove unneeded dai->driver->ops check

On soc_add_dai(), it uses null_dai_ops if driver doesn't have
its own ops. This means, dai->driver->ops never been NULL.
dai->driver->ops check is not needed.
This patch removes it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-dapm.c
sound/soc/soc-pcm.c