From: Julia Lawall Date: Mon, 16 Aug 2010 16:25:21 +0000 (+0200) Subject: drivers/net/wireless/wl12xx: Use available error codes X-Git-Tag: v2.6.37-rc1~147^2~679^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f19fa62edd2c397ed41c2dba29fb9f7144cb918;p=pandora-kernel.git drivers/net/wireless/wl12xx: Use available error codes In each case, error codes are stored in ret, but the return value is always 0. Return ret instead. 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 Acked-by: Kalle Valo Signed-off-by: John W. Linville --- Reading git-diff-tree failed