aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorMichał Kępień <kernel@kempniu.pl>2017-03-01 07:42:54 +0100
committerDarren Hart <dvhart@infradead.org>2017-03-14 22:57:15 -0700
commitd2aa3ae86daca0486da4301702e709b2d519b6cb (patch)
tree1ab6f2d26ef8fb675bffb2462077e506ee155424 /tools/perf/scripts/python/export-to-postgresql.py
parentplatform/x86: fujitsu-laptop: decrease indentation in acpi_fujitsu_bl_notify() (diff)
downloadlinux-d2aa3ae86daca0486da4301702e709b2d519b6cb.tar.gz
linux-d2aa3ae86daca0486da4301702e709b2d519b6cb.zip
platform/x86: fujitsu-laptop: simplify brightness key event generation logic
Returning early when there is no brightness change allows removal of a duplicate code block, makes the purpose of the following code clearer and allows the condition surrounding key event generation to be removed. Local integer variables can also be declared in a single line. Signed-off-by: Michał Kępień <kernel@kempniu.pl> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-and-tested-by: Jonathan Woithe <jwoithe@just42.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions