diff options
author | Michał Kępień <kernel@kempniu.pl> | 2017-04-07 15:07:12 +0200 |
---|---|---|
committer | Darren Hart (VMware) <dvhart@infradead.org> | 2017-04-19 12:57:25 -0700 |
commit | 30943e1484aab78d83ddfb706bca65c5d8092bfb (patch) | |
tree | 1dcf66fc16533ef697c40ea7df6fe7c84aed2cc2 /certs | |
parent | 81f6821f3f7e231b83dca1fb44bf9ddaa3313421 (diff) | |
download | talos-op-linux-30943e1484aab78d83ddfb706bca65c5d8092bfb.tar.gz talos-op-linux-30943e1484aab78d83ddfb706bca65c5d8092bfb.zip |
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ń <kernel@kempniu.pl>
Reviewed-by: Jonathan Woithe <jwoithe@just42.net>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
Diffstat (limited to 'certs')
0 files changed, 0 insertions, 0 deletions