From: Colin Ian King Date: Wed, 22 Jul 2020 17:06:08 +0000 (+0100) Subject: ACPI: APEI: remove redundant assignment to variable rc X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=eb27e5a314d1e2c303ac0df3384552743c3dfcda;p=linux.git 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 Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/acpi/apei/hest.c b/drivers/acpi/apei/hest.c index 953a2fae8b157..6e980fe16772c 100644 --- a/drivers/acpi/apei/hest.c +++ b/drivers/acpi/apei/hest.c @@ -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) {