ASoC: imx-wm8962: Add a missing error check
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 10 Jun 2015 15:37:23 +0000 (18:37 +0300)
committerMark Brown <broonie@kernel.org>
Wed, 10 Jun 2015 17:33:11 +0000 (18:33 +0100)
commit474ff0ae23b834e9fc18374d14bb5f3e7b3828b4
treef9584b2f9d3793dcc2eff10b5018ac784e9cb3f5
parent0f9a7fecf2514cd5cb14be8e9aae3556c403ff1f
ASoC: imx-wm8962: Add a missing error check

My static checker complains that:

sound/soc/fsl/imx-wm8962.c:196 imx_wm8962_probe() warn:
we tested 'ret' before and it was 'false'

The intent was that we use "ret" to check imx_audmux_v2_configure_port().

Fixes: 8de2ae2a7f1f ('ASoC: fsl: add imx-wm8962 machine driver')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Otherwise, Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/imx-wm8962.c