]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - sound/pci/hda/hda_intel.c
ACPI: Test for ACPI_SUCCESS rather than !ACPI_FAILURE
[mirror_ubuntu-jammy-kernel.git] / sound / pci / hda / hda_intel.c
index e4dd2ff5e47378905f3cae5d53a5770c76740dfd..db587aed2061a1e5158ec1a7c3c542739b798ba2 100644 (file)
@@ -1444,7 +1444,7 @@ static bool atpx_present(void)
                dhandle = ACPI_HANDLE(&pdev->dev);
                if (dhandle) {
                        status = acpi_get_handle(dhandle, "ATPX", &atpx_handle);
-                       if (!ACPI_FAILURE(status)) {
+                       if (ACPI_SUCCESS(status)) {
                                pci_dev_put(pdev);
                                return true;
                        }
@@ -1454,7 +1454,7 @@ static bool atpx_present(void)
                dhandle = ACPI_HANDLE(&pdev->dev);
                if (dhandle) {
                        status = acpi_get_handle(dhandle, "ATPX", &atpx_handle);
-                       if (!ACPI_FAILURE(status)) {
+                       if (ACPI_SUCCESS(status)) {
                                pci_dev_put(pdev);
                                return true;
                        }