aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDmitry Rozhkov <[email protected]>2018-07-24 14:27:34 +0300
committerRafael J. Wysocki <[email protected]>2018-07-25 13:41:52 +0200
commit2754435d4c820875412785da9bfa017a74fe51a7 (patch)
treee4c651556606981d1a213cac27f0aad7ed63de53 /tools/perf/scripts/python
parentdd1fca9e6cd4c5c179f4e854ceddbc22890109ce (diff)
ACPI / battery: get rid of negations in conditions
Simple conditions without negations inflict less cognitive load on readers. Rework conditional branches not to use negations. Also add braces around single statement branches where their counterpart else-branches consist of more than one statement as suggested in the paragraph 3 of the coding style. Suggested-by: Andy Shevchenko <[email protected]> Signed-off-by: Dmitry Rozhkov <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions