summaryrefslogtreecommitdiffstats
path: root/sound/soc/fsl
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2015-06-10 18:37:23 +0300
committerLuis Henriques <luis.henriques@canonical.com>2015-07-15 10:01:26 +0100
commit3e8935e4063ec583980c84de30fd6f816a7b8fe0 (patch)
tree5d0d2c7039eba2e1c055b5a60c8c278d9a436e9a /sound/soc/fsl
parent3990c30b555f65cca93e7f849e660a11b5995d83 (diff)
downloadlinux-stable-3e8935e4063ec583980c84de30fd6f816a7b8fe0.tar.gz
linux-stable-3e8935e4063ec583980c84de30fd6f816a7b8fe0.tar.bz2
linux-stable-3e8935e4063ec583980c84de30fd6f816a7b8fe0.zip
ASoC: imx-wm8962: Add a missing error check
commit 474ff0ae23b834e9fc18374d14bb5f3e7b3828b4 upstream. 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> Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
Diffstat (limited to 'sound/soc/fsl')
-rw-r--r--sound/soc/fsl/imx-wm8962.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/fsl/imx-wm8962.c b/sound/soc/fsl/imx-wm8962.c
index 3a3d17ce6ba4..664452599497 100644
--- a/sound/soc/fsl/imx-wm8962.c
+++ b/sound/soc/fsl/imx-wm8962.c
@@ -190,7 +190,7 @@ static int imx_wm8962_probe(struct platform_device *pdev)
dev_err(&pdev->dev, "audmux internal port setup failed\n");
return ret;
}
- imx_audmux_v2_configure_port(ext_port,
+ ret = imx_audmux_v2_configure_port(ext_port,
IMX_AUDMUX_V2_PTCR_SYN,
IMX_AUDMUX_V2_PDCR_RXDSEL(int_port));
if (ret) {