]> err.no Git - linux-2.6/commitdiff
ACPICA: Removed extraneous code
authorBob Moore <robert.moore@intel.com>
Thu, 10 Apr 2008 15:06:37 +0000 (19:06 +0400)
committerLen Brown <len.brown@intel.com>
Tue, 22 Apr 2008 18:29:22 +0000 (14:29 -0400)
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/dispatcher/dsmethod.c
drivers/acpi/namespace/nswalk.c

index c50c0cd5d717fb24495ea354eb76ae45821b2d44..3db651c7f5821b6d1453b0c7d4ced6c160ab3f30 100644 (file)
@@ -535,7 +535,6 @@ void
 acpi_ds_terminate_control_method(union acpi_operand_object *method_desc,
                                 struct acpi_walk_state *walk_state)
 {
-       struct acpi_namespace_node *method_node;
        acpi_status status;
 
        ACPI_FUNCTION_TRACE_PTR(ds_terminate_control_method, walk_state);
@@ -574,12 +573,6 @@ acpi_ds_terminate_control_method(union acpi_operand_object *method_desc,
        }
 
        if (walk_state) {
-               /*
-                * Delete any objects created by this method during execution.
-                * The method Node is stored in the walk state
-                */
-               method_node = walk_state->method_node;
-
                /*
                 * Delete any namespace objects created anywhere within
                 * the namespace by the execution of this method
index 280b8357c46c32ebe3f5dc9933f6a19ae95f4d0e..c7b5409e2cf81c62d132beec28832c35c89ae2d3 100644 (file)
@@ -77,9 +77,7 @@ struct acpi_namespace_node *acpi_ns_get_next_node(acpi_object_type type, struct
 
                /* It's really the parent's _scope_ that we want */
 
-               if (parent_node->child) {
-                       next_node = parent_node->child;
-               }
+               next_node = parent_node->child;
        }
 
        else {