1
0
Files
linux/drivers
Peter Senna Tschudin 2b9d89dd7a 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>
2014-05-24 01:55:14 +09:00
..
2014-05-16 23:43:56 +02:00
2014-05-22 23:27:17 +09:00
2014-04-08 13:27:40 +02:00
2014-05-22 23:27:17 +09:00
2014-04-16 12:28:47 -07:00
2014-04-24 12:53:38 -07:00
2014-04-18 16:40:08 -07:00
2014-05-17 15:49:40 -07:00
2014-05-22 23:27:17 +09:00
2014-04-16 14:07:51 -07:00