From: Julia Lawall Date: Mon, 16 Aug 2010 16:26:36 +0000 (+0200) Subject: staging: Use available error codes X-Git-Tag: v2.6.37-rc1~60^2~3^2~747 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d9db977f9ac9b15f916888978026025c6cf9563;p=pandora-kernel.git staging: Use available error codes An error code is stored in a variable, but 0 is returned instead. Use the variable instead of 0. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @r@ local idexpression x; constant C; @@ if (...) { ... x = -C ... when != x ( return <+...x...+>; | return NULL; | return; | * return ...; ) } // Signed-off-by: Julia Lawall Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed