diff options
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/dispatcher/dsmethod.c | 7 | ||||
-rw-r--r-- | drivers/acpi/namespace/nswalk.c | 4 |
2 files changed, 1 insertions, 10 deletions
diff --git a/drivers/acpi/dispatcher/dsmethod.c b/drivers/acpi/dispatcher/dsmethod.c index c50c0cd5d717..3db651c7f582 100644 --- a/drivers/acpi/dispatcher/dsmethod.c +++ b/drivers/acpi/dispatcher/dsmethod.c | |||
@@ -535,7 +535,6 @@ void | |||
535 | acpi_ds_terminate_control_method(union acpi_operand_object *method_desc, | 535 | acpi_ds_terminate_control_method(union acpi_operand_object *method_desc, |
536 | struct acpi_walk_state *walk_state) | 536 | struct acpi_walk_state *walk_state) |
537 | { | 537 | { |
538 | struct acpi_namespace_node *method_node; | ||
539 | acpi_status status; | 538 | acpi_status status; |
540 | 539 | ||
541 | ACPI_FUNCTION_TRACE_PTR(ds_terminate_control_method, walk_state); | 540 | ACPI_FUNCTION_TRACE_PTR(ds_terminate_control_method, walk_state); |
@@ -575,12 +574,6 @@ acpi_ds_terminate_control_method(union acpi_operand_object *method_desc, | |||
575 | 574 | ||
576 | if (walk_state) { | 575 | if (walk_state) { |
577 | /* | 576 | /* |
578 | * Delete any objects created by this method during execution. | ||
579 | * The method Node is stored in the walk state | ||
580 | */ | ||
581 | method_node = walk_state->method_node; | ||
582 | |||
583 | /* | ||
584 | * Delete any namespace objects created anywhere within | 577 | * Delete any namespace objects created anywhere within |
585 | * the namespace by the execution of this method | 578 | * the namespace by the execution of this method |
586 | */ | 579 | */ |
diff --git a/drivers/acpi/namespace/nswalk.c b/drivers/acpi/namespace/nswalk.c index 280b8357c46c..c7b5409e2cf8 100644 --- a/drivers/acpi/namespace/nswalk.c +++ b/drivers/acpi/namespace/nswalk.c | |||
@@ -77,9 +77,7 @@ struct acpi_namespace_node *acpi_ns_get_next_node(acpi_object_type type, struct | |||
77 | 77 | ||
78 | /* It's really the parent's _scope_ that we want */ | 78 | /* It's really the parent's _scope_ that we want */ |
79 | 79 | ||
80 | if (parent_node->child) { | 80 | next_node = parent_node->child; |
81 | next_node = parent_node->child; | ||
82 | } | ||
83 | } | 81 | } |
84 | 82 | ||
85 | else { | 83 | else { |