aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorTobin C. Harding <[email protected]>2017-03-22 13:06:27 +1100
committerGreg Kroah-Hartman <[email protected]>2017-03-23 14:27:23 +0100
commit2c4951adfae24d901c699ebb918bb6e5c7865ab7 (patch)
treeee0ab4b8fe0b9d27537f25e4b9fdcb4349a72f9e /tools/perf/scripts/python
parent6ad6e21bd4e4edd1a3f59dc74b5f238455c05e71 (diff)
staging: ks7010: invert if statement conditionals
Checkpatch emits WARNING: Avoid multiple line dereference. Function uses if statement blocks to guard the body of the function. If we invert these conditionals and return, then the code becomes more readable and subsequent code is indented less. The checkpatch fix then follows trivially. Invert conditionals, return from function if new conditional evaluates to true. Reduce the level of indentation in subsequent code. Signed-off-by: Tobin C. Harding <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions