mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 15:47:36 +00:00
platform/x86: toshiba_bluetooth: Decouple an error checking status code
This patch simply decouples the error checking of the ACPI status and the actual BT status, as those two were nested in an if/else check, but are completely unrelated. Signed-off-by: Azael Avalos <coproscefalo@gmail.com> Signed-off-by: Darren Hart <dvhart@linux.intel.com>
This commit is contained in:
parent
baae5f9157
commit
28e476d743
1 changed files with 3 additions and 1 deletions
|
@ -80,7 +80,9 @@ static int toshiba_bluetooth_present(acpi_handle handle)
|
||||||
if (ACPI_FAILURE(result)) {
|
if (ACPI_FAILURE(result)) {
|
||||||
pr_err("ACPI call to query Bluetooth presence failed\n");
|
pr_err("ACPI call to query Bluetooth presence failed\n");
|
||||||
return -ENXIO;
|
return -ENXIO;
|
||||||
} else if (!bt_present) {
|
}
|
||||||
|
|
||||||
|
if (!bt_present) {
|
||||||
pr_info("Bluetooth device not present\n");
|
pr_info("Bluetooth device not present\n");
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue