]> git.baikalelectronics.ru Git - kernel.git/commitdiff
platform/x86: asus_wmi: remove redundant initialization of variable status
authorColin Ian King <colin.king@canonical.com>
Thu, 7 May 2020 22:04:55 +0000 (23:04 +0100)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 12 May 2020 14:27:11 +0000 (17:27 +0300)
The variable status 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: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/asus-wmi.c

index e705ae66c083ee1a811be780b2cab98c3d09e010..7adb3da44a6a5e3a8a8ae963e084f7e1385160de 100644 (file)
@@ -309,7 +309,7 @@ static int asus_wmi_evaluate_method_agfn(const struct acpi_buffer args)
        struct acpi_buffer input;
        u64 phys_addr;
        u32 retval;
-       u32 status = -1;
+       u32 status;
 
        /*
         * Copy to dma capable address otherwise memory corruption occurs as