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 assigned a value that is never read,
the assignment 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 Apr 21, 2021
1 parent bf05bf1 commit c3f2311
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/acpi/apei/einj.c
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,6 @@ static int __init einj_init(void)
goto err_release;
}

rc = -ENOMEM;
einj_param = einj_get_parameter_address();
if ((param_extension || acpi5) && einj_param) {
debugfs_create_x32("flags", S_IRUSR | S_IWUSR, einj_debug_dir,
Expand Down

0 comments on commit c3f2311

Please sign in to comment.