Searched hist:"513 ee146f69c48db362189b6423e6c4ede4b3aad" (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/platform/x86/ |
H A D | toshiba_acpi.c | diff 513ee146f69c48db362189b6423e6c4ede4b3aad Mon Aug 29 17:37:35 CEST 2016 Azael Avalos <coproscefalo@gmail.com> 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>
|