diff options
author | 2014-05-20 12:33:41 +0200 | |
---|---|---|
committer | 2014-05-24 02:17:18 +0900 | |
commit | 8ffca9eae662004016a6d60a2a79ce93f81f150e (patch) | |
tree | 8061e90a714500fb239bc94508d45b125a39410f /include/linux/device.h | |
parent | staging: gdm72xx: return values cleanup (diff) | |
download | wireguard-linux-8ffca9eae662004016a6d60a2a79ce93f81f150e.tar.xz wireguard-linux-8ffca9eae662004016a6d60a2a79ce93f81f150e.zip |
staging: r8712u: Remove useless return variables
This patch remove variables that are initialized with a constant,
are never updated, and are only used as parameter of return.
Return the constant instead of using a variable.
Verified by compilation only.
The coccinelle script that find and fixes this issue is:
// <smpl>
@@
type T;
constant C;
identifier ret;
@@
- T ret = C;
... when != ret
- return ret;
+ return C;
// </smpl>
Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/device.h')
0 files changed, 0 insertions, 0 deletions