Skip to contentSkip to conversation

ASoC: fsl: imx-wm8962: Fix missing audmux external port setup check

PATCH New Andreas Pretzsch 1 participant 1 message Aug 23, 2013

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: fsl: imx-wm8962: Fix missing audmux external port setup check

Return value of imx_audmux_v2_configure_port(ext_port, ...) was not assigned. Following check tested the preceding call (int_port).

---
Fix not tested (no matching hardware), only noticed during code reading.

Patch against
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git topic/wm8962

 sound/soc/fsl/imx-wm8962.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/fsl/imx-wm8962.c +1 -1
index 52a36a9..e018632 100644
@@ -192,7 +192,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) {
Signature · 1 line
1.7.10.4