diff options
| author | 2014-05-20 12:33:42 +0200 | |
|---|---|---|
| committer | 2014-05-24 01:55:14 +0900 | |
| commit | 2b9d89dd7acfc08b2fcb935f73a8d480e9067a97 (patch) | |
| tree | 9e039988d15e3a5cf720fab1f68eb92a1c7e1008 /scripts/basic | |
| parent | staging: wlags49_h2: make return of 0 explicit (diff) | |
staging: wlags49_h2: wl_priv: 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 'scripts/basic')
0 files changed, 0 insertions, 0 deletions
