OSDN Git Service

platform/x86: fujitsu-laptop: simplify call_fext_func()
authorMichał Kępień <kernel@kempniu.pl>
Mon, 3 Apr 2017 09:38:58 +0000 (11:38 +0200)
committerDarren Hart (VMware) <dvhart@infradead.org>
Thu, 13 Apr 2017 17:14:35 +0000 (10:14 -0700)
commit17e23555616116e1668e83029d26354c2479c78b
tree6836ea35982b78f7c43bab12af4b69b4f8a176bd
parentb10664105df0d26d1150f90ac508be0125fe5b42
platform/x86: fujitsu-laptop: simplify call_fext_func()

acpi_evaluate_integer() takes a pathname parameter which contains the
name of the entity to evaluate underneath the given handle, so calling
acpi_get_handle() beforehand is redundant.  Replace the call to
acpi_get_handle() with a call to acpi_evaluate_integer(), thus
eliminating the need for a local variable storing the handle.  Adjust
whitespace to make checkpatch happy.

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>
drivers/platform/x86/fujitsu-laptop.c