Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ACPI: APEI: remove redundant assignment to variable rc

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>

authored by

Colin Ian King and committed by
Rafael J. Wysocki
eb27e5a3 92ed3019

+1 -1
+1 -1
drivers/acpi/apei/hest.c
··· 227 227 void __init acpi_hest_init(void) 228 228 { 229 229 acpi_status status; 230 - int rc = -ENODEV; 230 + int rc; 231 231 unsigned int ghes_count = 0; 232 232 233 233 if (hest_disable) {