aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorNarcisa Ana Maria Vasile <[email protected]>2017-03-22 00:52:40 +0200
committerGreg Kroah-Hartman <[email protected]>2017-03-23 14:24:45 +0100
commite6d9379507d77c08fb9f91c8430c3f87ceb38d29 (patch)
treee9be9bb4c1c32f7c121f5fa2a84906e007739bde /tools/perf/scripts/python/bin
parentff49304b5b7b0136eb2954163dfa7c0739312169 (diff)
staging: rtl8712: Invert if statements to reduce indentation level
Invert if statements to be able to return immediately in case of error, and to avoid additional else branch, and then continue with the rest of the function without excessive indentation. This was found using the following Coccinelle script: @disable neg_if@ expression e,E; statement S; @@ *if (e) S else { return -E; } @disable neg_if@ expression e,E; statement S; identifier l; @@ *if (e) S else { rc = -E; goto l; } Signed-off-by: Narcisa Ana Maria Vasile <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions