ACPICA: GPEs: Do not allow enable for GPEs that have no handler(s).
[cascardo/linux.git] / drivers / acpi / acpica / hwregs.c
index e0fd9b4..a4c34d2 100644 (file)
@@ -278,8 +278,9 @@ acpi_status acpi_hw_clear_acpi_status(void)
 
        acpi_os_release_lock(acpi_gbl_hardware_lock, lock_flags);
 
-       if (ACPI_FAILURE(status))
+       if (ACPI_FAILURE(status)) {
                goto exit;
+       }
 
        /* Clear the GPE Bits in all GPE registers in all GPE blocks */