From: Julia Lawall Date: Sat, 22 Nov 2014 14:39:16 +0000 (+0100) Subject: HSI: nokia-modem: fix error return code X-Git-Tag: omap-for-v4.2/o2_dc~163^2~3 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2249129f438799e251fe1e05d0b6f38dc6e63b4;p=pandora-kernel.git HSI: nokia-modem: fix error return code Return a negative error code on failure. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ identifier ret; expression e1,e2; @@ ( if (\(ret < 0\|ret != 0\)) { ... return ret; } | ret = 0 ) ... when != ret = e1 when != &ret *if(...) { ... when != ret = e2 when forall return ret; } // Signed-off-by: Julia Lawall Signed-off-by: Sebastian Reichel --- Reading git-diff-tree failed