From: Julia Lawall Date: Mon, 16 Aug 2010 10:23:51 +0000 (+0000) Subject: drivers/net/qlcnic: Use available error codes X-Git-Tag: v2.6.37-rc1~147^2~792 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=900853a4db7098b0e58ddcb732632ac43a7b2148;p=pandora-kernel.git drivers/net/qlcnic: Use available error codes The error code is stored in the variable err, but it is the variable ret that is returned instead. So store the error code in ret. Err is then useless. 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: David S. Miller --- Reading git-diff-tree failed