[PATCH v2 32/42] ACPICA: events: Remove redundant code
From: Maciej Wieczor-Retman
Date: Fri Nov 20 2026 - 12:23:08 EST
This snippet happens inside the case part of a switch/case statement. It
only checks whether the switch and case value match which makes no sense
since they will always match. Remove the check.
Link: https://github.com/acpica/acpica/commit/a7f8f92b0422
Signed-off-by: Maciej Wieczor-Retman <maciej.wieczor-retman@xxxxxxxxx>
---
drivers/acpi/acpica/evgpe.c | 12 ------------
1 file changed, 12 deletions(-)
diff --git a/drivers/acpi/acpica/evgpe.c b/drivers/acpi/acpica/evgpe.c
index f74805507529..578651cde6f3 100644
--- a/drivers/acpi/acpica/evgpe.c
+++ b/drivers/acpi/acpica/evgpe.c
@@ -489,18 +489,6 @@ static void ACPI_SYSTEM_XFACE acpi_ev_asynch_execute_gpe_method(void *context)
case ACPI_GPE_DISPATCH_METHOD:
- /*
- * Re-check dispatch type. The table may have been unloaded
- * and its GPE dispatch cleared while we were waiting.
- */
- if (ACPI_GPE_DISPATCH_TYPE(gpe_event_info->flags) !=
- ACPI_GPE_DISPATCH_METHOD) {
- ACPI_DEBUG_PRINT(
- (ACPI_DB_EVENTS,
- "GPE method dispatch cleared during wait\n"));
- goto error_exit;
- }
-
/* Allocate the evaluation information block */
info = ACPI_ALLOCATE_ZEROED(sizeof(struct acpi_evaluate_info));
--
2.56.0