From: Julia Lawall Date: Wed, 22 Aug 2012 11:42:47 +0000 (+0200) Subject: drivers/spi/spi-s3c24xx.c: fix error return code X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~41^2~1^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2af045c70aa60f7231b22a363d74a1ab5a6297b;p=pandora-kernel.git drivers/spi/spi-s3c24xx.c: fix error return code Initialize return variable before exiting on an error path. 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