Skip to content

Commit 6568d0c

Browse files
Colin Ian Kingandy-shev
authored andcommitted
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 <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]>
1 parent aab9e78 commit 6568d0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/platform/x86/asus-wmi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ static int asus_wmi_evaluate_method_agfn(const struct acpi_buffer args)
309309
struct acpi_buffer input;
310310
u64 phys_addr;
311311
u32 retval;
312-
u32 status = -1;
312+
u32 status;
313313

314314
/*
315315
* Copy to dma capable address otherwise memory corruption occurs as

0 commit comments

Comments
 (0)