ACPI: APEI: remove redundant assignment to variable rc
authorColin Ian King <colin.king@canonical.com>
Wed, 22 Jul 2020 17:06:08 +0000 (18:06 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 27 Jul 2020 13:22:58 +0000 (15:22 +0200)
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>
drivers/acpi/apei/hest.c

index 953a2fa..6e980fe 100644 (file)
@@ -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) {