]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ACPI / APEI: Remove spurious GHES_TO_CLEAR check
authorJames Morse <james.morse@arm.com>
Tue, 29 Jan 2019 18:48:43 +0000 (18:48 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 7 Feb 2019 22:10:45 +0000 (23:10 +0100)
ghes_notify_nmi() checks ghes->flags for GHES_TO_CLEAR before going
on to __process_error(). This is pointless as ghes_read_estatus()
will always set this flag if it returns success, which was checked
earlier in the loop. Remove it.

Signed-off-by: James Morse <james.morse@arm.com>
Reviewed-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/apei/ghes.c

index a34f79153b1a06681a75d1402d4dc0c44259cc07..c20e1d0947b1464d07f59e67f682a0d0cf39dd40 100644 (file)
@@ -940,9 +940,6 @@ static int ghes_notify_nmi(unsigned int cmd, struct pt_regs *regs)
                        __ghes_panic(ghes, buf_paddr);
                }
 
-               if (!(ghes->flags & GHES_TO_CLEAR))
-                       continue;
-
                __process_error(ghes);
                ghes_clear_estatus(ghes, buf_paddr);
        }