diff options
| author | Janani Ravichandran <[email protected]> | 2016-02-18 16:52:45 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2016-02-20 14:39:54 -0800 |
| commit | 7d51a7dab7486a5961ca30909531f70155043a31 (patch) | |
| tree | 4bcfc272af073f1f81c3e086d04dd2cb7b82c638 /tools/perf/scripts/python | |
| parent | 496baea013b6c9ef7eaf80facc50b4317e5cd39c (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 <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions