summaryrefslogtreecommitdiffstats
path: root/certs
diff options
context:
space:
mode:
authorMichał Kępień <kernel@kempniu.pl>2017-04-07 15:07:12 +0200
committerDarren Hart (VMware) <dvhart@infradead.org>2017-04-19 12:57:25 -0700
commit30943e1484aab78d83ddfb706bca65c5d8092bfb (patch)
tree1dcf66fc16533ef697c40ea7df6fe7c84aed2cc2 /certs
parent81f6821f3f7e231b83dca1fb44bf9ddaa3313421 (diff)
downloadtalos-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
OpenPOWER on IntegriCloud