diff options
Diffstat (limited to 'source/components/namespace/nsobject.c')
-rw-r--r-- | source/components/namespace/nsobject.c | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/source/components/namespace/nsobject.c b/source/components/namespace/nsobject.c index 9221ac00aa2e..5247ca61b41b 100644 --- a/source/components/namespace/nsobject.c +++ b/source/components/namespace/nsobject.c @@ -42,7 +42,6 @@ * POSSIBILITY OF SUCH DAMAGES. */ - #define __NSOBJECT_C__ #include "acpi.h" @@ -263,17 +262,16 @@ AcpiNsDetachObject ( { Node->Object = Node->Object->Common.NextObject; } - } - - /* - * Detach the object from any data objects (which are still held by - * the namespace node) - */ - if (ObjDesc->Common.NextObject && - ((ObjDesc->Common.NextObject)->Common.Type == ACPI_TYPE_LOCAL_DATA)) - { - ObjDesc->Common.NextObject = NULL; + /* + * Detach the object from any data objects (which are still held by + * the namespace node) + */ + if (ObjDesc->Common.NextObject && + ((ObjDesc->Common.NextObject)->Common.Type == ACPI_TYPE_LOCAL_DATA)) + { + ObjDesc->Common.NextObject = NULL; + } } /* Reset the node type to untyped */ |