ACPI / APEI: Remove needless __ghes_check_estatus() calls
authorLiguang Zhang <zhangliguang@linux.alibaba.com>
Tue, 25 Jun 2019 05:15:28 +0000 (13:15 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 4 Jul 2019 23:23:11 +0000 (01:23 +0200)
Function __ghes_check_estatus() is always called after
__ghes_peek_estatus(), but it is already called in __ghes_peek_estatus().
So we should remove some needless __ghes_check_estatus() calls.

Signed-off-by: Liguang Zhang <zhangliguang@linux.alibaba.com>
Reviewed-by: James Morse <james.morse@arm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/apei/ghes.c

index 993940d..a66e00f 100644 (file)
@@ -345,7 +345,7 @@ static int __ghes_peek_estatus(struct ghes *ghes,
                return -ENOENT;
        }
 
-       return __ghes_check_estatus(ghes, estatus);
+       return 0;
 }
 
 static int __ghes_read_estatus(struct acpi_hest_generic_status *estatus,