From: Julia Lawall Date: Sun, 19 Aug 2012 07:02:52 +0000 (+0200) Subject: ASoC: imx-sgtl5000: fix error return code X-Git-Tag: v3.6-rc6~6^2^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db8b624d55e65ad5d8211a9fef66fa7f16bd13a0;p=pandora-kernel.git ASoC: imx-sgtl5000: fix error return code Initialize ret on the second call to imx_audmux_v2_configure_port so that the subsequent test checks that result and not the previous one. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // ( if@p1 (\(ret < 0\|ret != 0\)) { ... return ret; } | ret@p1 = 0 ) ... when != ret = e1 when != &ret *if(...) { ... when != ret = e2 when forall return ret; } // Signed-off-by: Julia Lawall Signed-off-by: Mark Brown --- Reading git-diff-tree failed