diff options
author | Alex Chiang <achiang@hp.com> | 2009-12-20 14:23:11 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-12-22 03:24:16 -0500 |
commit | b9c2db783456bcbce31e2482214cd337528db295 (patch) | |
tree | faafd4397ee7bcb1b8a321b05b2cbebfa4a65e1a | |
parent | fa118564ed66f785f957d8230745b62e9244700d (diff) |
ACPI: processor: open code acpi_processor_cleanup_pdc
We have the acpi_object_list * right there in acpi_processor_set_pdc()
so it doesn't seem necessary for an entire helper function just to
free it.
Signed-off-by: Alex Chiang <achiang@hp.com>
Signed-off-by: Len Brown <len.brown@intel.com>
-rw-r--r-- | drivers/acpi/processor_pdc.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/drivers/acpi/processor_pdc.c b/drivers/acpi/processor_pdc.c index 974de4eb2982..deeba22c932c 100644 --- a/drivers/acpi/processor_pdc.c +++ b/drivers/acpi/processor_pdc.c | |||
@@ -125,16 +125,6 @@ acpi_processor_eval_pdc(acpi_handle handle, struct acpi_object_list *pdc_in) | |||
125 | return status; | 125 | return status; |
126 | } | 126 | } |
127 | 127 | ||
128 | static void acpi_processor_cleanup_pdc(struct acpi_processor *pr) | ||
129 | { | ||
130 | if (pr->pdc) { | ||
131 | kfree(pr->pdc->pointer->buffer.pointer); | ||
132 | kfree(pr->pdc->pointer); | ||
133 | kfree(pr->pdc); | ||
134 | pr->pdc = NULL; | ||
135 | } | ||
136 | } | ||
137 | |||
138 | void acpi_processor_set_pdc(struct acpi_processor *pr) | 128 | void acpi_processor_set_pdc(struct acpi_processor *pr) |
139 | { | 129 | { |
140 | struct acpi_object_list *obj_list; | 130 | struct acpi_object_list *obj_list; |
@@ -147,7 +137,10 @@ void acpi_processor_set_pdc(struct acpi_processor *pr) | |||
147 | return; | 137 | return; |
148 | 138 | ||
149 | acpi_processor_eval_pdc(pr->handle, obj_list); | 139 | acpi_processor_eval_pdc(pr->handle, obj_list); |
150 | acpi_processor_cleanup_pdc(pr); | 140 | |
141 | kfree(obj_list->pointer->buffer.pointer); | ||
142 | kfree(obj_list->pointer); | ||
143 | kfree(obj_list); | ||
151 | } | 144 | } |
152 | EXPORT_SYMBOL_GPL(acpi_processor_set_pdc); | 145 | EXPORT_SYMBOL_GPL(acpi_processor_set_pdc); |
153 | 146 | ||