1
0
Fork 0

ACPI / APEI: Remove needless __ghes_check_estatus() calls

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>
This commit is contained in:
Liguang Zhang 2019-06-25 13:15:28 +08:00 committed by Rafael J. Wysocki
parent 6fbc7275c7
commit 371b86897d

View 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,