aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts
diff options
context:
space:
mode:
authorMichał Kępień <[email protected]>2017-04-07 15:07:12 +0200
committerDarren Hart (VMware) <[email protected]>2017-04-19 12:57:25 -0700
commit30943e1484aab78d83ddfb706bca65c5d8092bfb (patch)
tree1dcf66fc16533ef697c40ea7df6fe7c84aed2cc2 /tools/perf/scripts
parent81f6821f3f7e231b83dca1fb44bf9ddaa3313421 (diff)
platform/x86: fujitsu-laptop: do not log LED registration failures
If acpi_fujitsu_laptop_leds_register() returns an error, the latter will become the return value of acpi_fujitsu_laptop_add(), which in turn will be reported by driver core. Simplify code by replacing pr_err() calls with return statements. Return 0 instead of result when no errors occur in order to make the code easier to read. Signed-off-by: Michał Kępień <[email protected]> Reviewed-by: Jonathan Woithe <[email protected]> Signed-off-by: Darren Hart (VMware) <[email protected]>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions