summaryrefslogtreecommitdiff
path: root/drivers/net/sunhme.c
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2010-08-16 10:23:51 +0000
committerDavid S. Miller <davem@davemloft.net>2010-08-18 14:26:32 -0700
commit900853a4db7098b0e58ddcb732632ac43a7b2148 (patch)
tree9152ef81c79caef6434f077db7b3bf5794e45f96 /drivers/net/sunhme.c
parent49339ccae5ba361b62e829886117dbce4b77194f (diff)
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/) // <smpl> @r@ local idexpression x; constant C; @@ if (...) { ... x = -C ... when != x ( return <+...x...+>; | return NULL; | return; | * return ...; ) } // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sunhme.c')
0 files changed, 0 insertions, 0 deletions