]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: fujitsu-laptop: simplify acpi_bus_register_driver() error handling
authorAlan Jenkins <alan-jenkins@tuffmail.co.uk>
Wed, 8 Feb 2017 13:46:30 +0000 (14:46 +0100)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Sun, 26 Feb 2017 15:01:07 +0000 (17:01 +0200)
commitc1ee195bb5109cb16625da018aef6b355f2a31cd
tree6538ccf1a3331795a2695fb894b449ee1fffb0a5
parent3f2f5a0e1372b18539fffee359fcc61e49113ffa
platform/x86: fujitsu-laptop: simplify acpi_bus_register_driver() error handling

A separate variable is not needed to handle error codes returned by
acpi_bus_register_driver().  If the latter fails, just use the value it
returned as the value returned by fujitsu_init().

Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
[kempniu: rebase patch, rewrite commit message]
Signed-off-by: Michał Kępień <kernel@kempniu.pl>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Jonathan Woithe <jwoithe@just42.net>
drivers/platform/x86/fujitsu-laptop.c