Skip to content

Commit

Permalink
ACPI / APEI: Remove needless __ghes_check_estatus() calls
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Liguang Zhang authored and Rafael J. Wysocki committed Jul 4, 2019
1 parent 6fbc727 commit 371b868
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/acpi/apei/ghes.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 371b868

Please sign in to comment.