From: Julia Lawall Date: Sun, 8 Jun 2014 20:12:00 +0000 (+0100) Subject: iio: fix error return code X-Git-Tag: fixes-for-v3.18-merge-window~15^2~1187^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=889c558095e96312d81b4084567c11a52b285393;p=pandora-kernel.git iio: fix error return code Convert a zero return value on error to a negative one, as returned elsewhere in the function. 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: Jonathan Cameron --- Reading git-diff-tree failed