summaryrefslogtreecommitdiff
path: root/source/components/namespace/nsrepair2.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/components/namespace/nsrepair2.c')
-rw-r--r--source/components/namespace/nsrepair2.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/source/components/namespace/nsrepair2.c b/source/components/namespace/nsrepair2.c
index fe8b763903a7..22ac8702c903 100644
--- a/source/components/namespace/nsrepair2.c
+++ b/source/components/namespace/nsrepair2.c
@@ -448,16 +448,12 @@ AcpiNsRepair_CID (
return (Status);
}
- /* Take care with reference counts */
-
if (OriginalElement != *ElementPtr)
{
- /* Element was replaced */
+ /* Update reference count of new object */
(*ElementPtr)->Common.ReferenceCount =
OriginalRefCount;
-
- AcpiUtRemoveReference (OriginalElement);
}
ElementPtr++;