Skip to content

Commit

Permalink
ACPI: APEI: remove redundant assignment to variable rc
Browse files Browse the repository at this point in the history
The variable rc is being initialized with a value that is
never read and it is being updated later with a new value. The
initialization is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Colin Ian King authored and Rafael J. Wysocki committed Jul 27, 2020
1 parent 92ed301 commit eb27e5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/acpi/apei/hest.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ __setup("hest_disable", setup_hest_disable);
void __init acpi_hest_init(void)
{
acpi_status status;
int rc = -ENODEV;
int rc;
unsigned int ghes_count = 0;

if (hest_disable) {
Expand Down

0 comments on commit eb27e5a

Please sign in to comment.