aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorAndy Shevchenko <[email protected]>2023-10-16 18:30:51 +0300
committerLee Jones <[email protected]>2023-11-01 11:29:18 +0000
commit49e50aad22aebaaca3ff7abbdd462deaf16c5f35 (patch)
treee673db93587fa6b60d158d77834d8f6142b58965 /tools/perf/scripts/python/export-to-postgresql.py
parent78cbcfd8b13cefe089296d053f222934a53e153d (diff)
leds: core: Refactor led_update_brightness() to use standard pattern
The standard conditional pattern is to check for errors first and bail out if any. Refactor led_update_brightness() accordingly. While at it, drop unneeded assignment and return 0 unconditionally on success. Signed-off-by: Andy Shevchenko <[email protected]> Acked-by: Denis Osterland-Heim <[email protected]> Reviewed-by: Hans de Goede <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions