]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: toshiba_acpi: Change error checking logic from TCI functions
authorAzael Avalos <coproscefalo@gmail.com>
Mon, 29 Aug 2016 15:37:35 +0000 (09:37 -0600)
committerDarren Hart <dvhart@linux.intel.com>
Thu, 1 Sep 2016 00:33:32 +0000 (17:33 -0700)
commit8c5e66139ac8e6df61e117447dd9c82324a33b05
tree81ef4e3305d20a590ccc898a79936cc202f8c66c
parent736cf53dd291af26865fced64cb46c5d35af7031
platform/x86: toshiba_acpi: Change error checking logic from TCI functions

Currently the success/error checking logic is intermixed, making the
code a bit cumbersome to understand.

This patch changes the affected functions to first check for errors
and take appropriate actions, then check for the supported features.

This patch also separates the error check from the acpi_status and
the tci_raw function call error check, as those two are completely
unrelated and were nested in if/else statements.

Signed-off-by: Azael Avalos <coproscefalo@gmail.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
drivers/platform/x86/toshiba_acpi.c