From: Julia Lawall Date: Thu, 16 Aug 2012 21:46:58 +0000 (+0000) Subject: drivers/net/irda: fix error return code X-Git-Tag: v3.6-rc3~10^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9915e67eb1134b4710a4888a3e041c757869e0e2;p=pandora-kernel.git drivers/net/irda: fix error return code Convert a nonnegative error return code 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/) // @@ identifier ret; expression e1,e2; @@ if (ret < 0) { ... return ret; } ... when != ret = e1 when forall *if(...) { ... when != ret = e2 * return ret; } // Signed-off-by: Julia Lawall Signed-off-by: David S. Miller --- Reading git-diff-tree failed