diff options
author | Andi Kleen <andi@firstfloor.org> | 2010-07-20 18:18:36 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2010-08-15 00:53:08 -0400 |
commit | cfa806f059801dbe7e435745eb2e187c8bfe1e7f (patch) | |
tree | 9c99026f29b863ca0541699e45349b8fa40ea93a /drivers/acpi/power.c | |
parent | 43d9f87b79804f2d75d9d8a81c862b179f055a15 (diff) |
gcc-4.6: ACPI: fix unused but set variables in ACPI
Some minor improvements in error handling, but overall it was mostly dead
code.
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/power.c')
-rw-r--r-- | drivers/acpi/power.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/acpi/power.c b/drivers/acpi/power.c index 4fe5018fd6ab..cf073aa0709b 100644 --- a/drivers/acpi/power.c +++ b/drivers/acpi/power.c | |||
@@ -242,8 +242,6 @@ static int acpi_power_off_device(acpi_handle handle, struct acpi_device *dev) | |||
242 | acpi_status status = AE_OK; | 242 | acpi_status status = AE_OK; |
243 | struct acpi_power_resource *resource = NULL; | 243 | struct acpi_power_resource *resource = NULL; |
244 | struct list_head *node, *next; | 244 | struct list_head *node, *next; |
245 | struct acpi_power_reference *ref; | ||
246 | |||
247 | 245 | ||
248 | result = acpi_power_get_context(handle, &resource); | 246 | result = acpi_power_get_context(handle, &resource); |
249 | if (result) | 247 | if (result) |