aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/hp-wmi.c
diff options
context:
space:
mode:
authorAnssi Hannula <anssi.hannula@iki.fi>2011-02-20 13:07:21 -0500
committerMatthew Garrett <mjg@redhat.com>2011-03-28 06:07:18 -0400
commit25bb067a08c5db70cd8bcf9e160ac81718ea075c (patch)
tree58241bf2f9f787e70bbd02615fa04d5efd560cf2 /drivers/platform/x86/hp-wmi.c
parent9af0e0fb70ed8e2387323c19496a7e174363f7b6 (diff)
hp-wmi: remove a variable that is never read
Remove the status variable from hp_wmi_perform_query which holds the return value from wmi_evaluate_method(). It is never checked as the function bails out if the output buffer hasn't been allocated which indicates the call failed. Signed-off-by: Anssi Hannula <anssi.hannula@iki.fi> Signed-off-by: Matthew Garrett <mjg@redhat.com>
Diffstat (limited to 'drivers/platform/x86/hp-wmi.c')
-rw-r--r--drivers/platform/x86/hp-wmi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/platform/x86/hp-wmi.c b/drivers/platform/x86/hp-wmi.c
index 87dfb2489762..8e27c27900a3 100644
--- a/drivers/platform/x86/hp-wmi.c
+++ b/drivers/platform/x86/hp-wmi.c
@@ -153,7 +153,6 @@ static int hp_wmi_perform_query(int query, int write, u32 *buffer,
153 int buffersize) 153 int buffersize)
154{ 154{
155 struct bios_return bios_return; 155 struct bios_return bios_return;
156 acpi_status status;
157 union acpi_object *obj; 156 union acpi_object *obj;
158 struct bios_args args = { 157 struct bios_args args = {
159 .signature = 0x55434553, 158 .signature = 0x55434553,
@@ -165,7 +164,7 @@ static int hp_wmi_perform_query(int query, int write, u32 *buffer,
165 struct acpi_buffer input = { sizeof(struct bios_args), &args }; 164 struct acpi_buffer input = { sizeof(struct bios_args), &args };
166 struct acpi_buffer output = { ACPI_ALLOCATE_BUFFER, NULL }; 165 struct acpi_buffer output = { ACPI_ALLOCATE_BUFFER, NULL };
167 166
168 status = wmi_evaluate_method(HPWMI_BIOS_GUID, 0, 0x3, &input, &output); 167 wmi_evaluate_method(HPWMI_BIOS_GUID, 0, 0x3, &input, &output);
169 168
170 obj = output.pointer; 169 obj = output.pointer;
171 170