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/numa.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/numa.c')
-rw-r--r-- | drivers/acpi/numa.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/acpi/numa.c b/drivers/acpi/numa.c index b0337d314604..5718566e00f9 100644 --- a/drivers/acpi/numa.c +++ b/drivers/acpi/numa.c | |||
@@ -255,12 +255,10 @@ acpi_parse_memory_affinity(struct acpi_subtable_header * header, | |||
255 | 255 | ||
256 | static int __init acpi_parse_srat(struct acpi_table_header *table) | 256 | static int __init acpi_parse_srat(struct acpi_table_header *table) |
257 | { | 257 | { |
258 | struct acpi_table_srat *srat; | ||
259 | |||
260 | if (!table) | 258 | if (!table) |
261 | return -EINVAL; | 259 | return -EINVAL; |
262 | 260 | ||
263 | srat = (struct acpi_table_srat *)table; | 261 | /* Real work done in acpi_table_parse_srat below. */ |
264 | 262 | ||
265 | return 0; | 263 | return 0; |
266 | } | 264 | } |