diff options
| author | 2015-03-12 04:21:29 +0200 | |
|---|---|---|
| committer | 2015-03-16 15:54:13 +0100 | |
| commit | 6c14378eca6f2f66438799e76845c3f2bbdafb57 (patch) | |
| tree | ba3e29dafc72efc2879a876be3cc17a5b5252a20 /include/linux/trace_seq.h | |
| parent | Staging: rtl8192u: Combine initialization using setup_timer (diff) | |
Staging: rtl8192u: Remove unnecessary variable
This patch detects the cases in which a variable is not modified through
the code and it is used as a return value. The variable is detected and
removed by coccinelle using the following semantic patch:
@@ type T; expression expr; identifier r; constant c; @@
-T r = expr;
... when != r
when strict
-return r;
+return expr;
Signed-off-by: Cristina Opriceana <cristina.opriceana@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/trace_seq.h')
0 files changed, 0 insertions, 0 deletions
