aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorNarcisa Ana Maria Vasile <narcisaanamaria12@gmail.com>2017-03-22 00:52:40 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-03-23 14:24:45 +0100
commite6d9379507d77c08fb9f91c8430c3f87ceb38d29 (patch)
treee9be9bb4c1c32f7c121f5fa2a84906e007739bde /tools/perf/scripts/python/bin
parentstaging: sm750fb: Remove typedef from "typedef enum _spolarity_t" (diff)
downloadlinux-e6d9379507d77c08fb9f91c8430c3f87ceb38d29.tar.gz
linux-e6d9379507d77c08fb9f91c8430c3f87ceb38d29.zip
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 <narcisaanamaria12@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions