Skip to content

Commit

Permalink
platform/x86: toshiba_acpi: Change error checking logic from TCI func…
Browse files Browse the repository at this point in the history
…tions

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>
  • Loading branch information
Azael Avalos authored and Darren Hart committed Sep 1, 2016
1 parent 78429e5 commit 513ee14
Showing 1 changed file with 138 additions and 88 deletions.
Loading

0 comments on commit 513ee14

Please sign in to comment.