Skip to content

Commit

Permalink
platform/x86: asus_wmi: remove redundant initialization of variable s…
Browse files Browse the repository at this point in the history
…tatus

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>
  • Loading branch information
Colin Ian King authored and Andy Shevchenko committed May 12, 2020
1 parent aab9e78 commit 6568d0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/platform/x86/asus-wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6568d0c

Please sign in to comment.