ASoC: soc-core: WARN() is not related to component->driver->probe
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 17 May 2019 06:06:37 +0000 (15:06 +0900)
committerMark Brown <broonie@kernel.org>
Mon, 20 May 2019 14:21:42 +0000 (15:21 +0100)
commit2ffb0f580bded5f16ec4d619f8abb4745425e864
tree156bc7f1795b850c8f3d8e7d9344b4907bd6f63f
parente9b5daad4e9bdd1b9e467873a4463c867ccf9ff1
ASoC: soc-core: WARN() is not related to component->driver->probe

soc_probe_component() has WARN() under if (component->driver->probe),
but, this WARN() check is not related to .probe callback.
So, it should be called at (B) instead of (A).
This patch moves it out of if().

if (component->driver->probe) {
ret = component->driver->probe(component);
...
(A) WARN(...)
}
(B) WARN(...)

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