summaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-05-07 23:04:55 +0100
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2020-05-12 17:27:11 +0300
commit6568d0c07efcc2e786d59c9258ec61f36f4ac483 (patch)
treeeb702f9a6bbd439ddae8163f69d09132a517dc19 /drivers/platform
parentaab9e7896ec98b2a6b4eeeed71cc666776bb8def (diff)
downloadlinux-6568d0c07efcc2e786d59c9258ec61f36f4ac483.tar.bz2
platform/x86: asus_wmi: remove redundant initialization of variable status
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>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/asus-wmi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/asus-wmi.c b/drivers/platform/x86/asus-wmi.c
index e705ae66c083..7adb3da44a6a 100644
--- a/drivers/platform/x86/asus-wmi.c
+++ b/drivers/platform/x86/asus-wmi.c
@@ -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