diff options
| author | 2016-02-18 16:52:45 -0500 | |
|---|---|---|
| committer | 2016-02-20 14:39:54 -0800 | |
| commit | 7d51a7dab7486a5961ca30909531f70155043a31 (patch) | |
| tree | 4bcfc272af073f1f81c3e086d04dd2cb7b82c638 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | Staging: lustre: lov: Pull assignments out of function call (diff) | |
staging: lustre: lustre: Remove unnecessary else after return
Else is unnecessary when there is a return statement in the
corresponding if block. Coccinelle patch used:
@rule1@
expression e1;
@@
if (e1) { ... return ...; }
- else{
...
- }
@rule2@
expression e2;
statement s1;
@@
if(e2) { ... return ...; }
- else
s1
Signed-off-by: Janani Ravichandran <janani.rvchndrn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
