Commit 371b8689 authored by Liguang Zhang's avatar Liguang Zhang Committed by Rafael J. Wysocki

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: default avatarLiguang Zhang <zhangliguang@linux.alibaba.com>
Reviewed-by: default avatarJames Morse <james.morse@arm.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 6fbc7275
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment