diff options
author | Julia Lawall <julia@diku.dk> | 2010-08-16 12:26:36 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-31 18:05:12 -0400 |
commit | 4d9db977f9ac9b15f916888978026025c6cf9563 (patch) | |
tree | c200321e405a3a4a26bcd0d3e8c1f88b71329438 /drivers/staging/rtl8192e/ieee80211 | |
parent | bb59a4c539140592723e806e852ee171da0eb3eb (diff) |
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/)
// <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: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/rtl8192e/ieee80211')
0 files changed, 0 insertions, 0 deletions