Index: sys/contrib/dev/acpica/dsmthdat.c =================================================================== RCS file: /home/ncvs/src/sys/contrib/dev/acpica/dsmthdat.c,v retrieving revision 1.1.1.17 diff -u -r1.1.1.17 dsmthdat.c --- sys/contrib/dev/acpica/dsmthdat.c 13 Jul 2003 22:52:51 -0000 1.1.1.17 +++ sys/contrib/dev/acpica/dsmthdat.c 16 Aug 2003 19:02:32 -0000 @@ -392,8 +392,6 @@ { ACPI_STATUS Status; ACPI_NAMESPACE_NODE *Node; - ACPI_OPERAND_OBJECT *NewDesc = Object; - ACPI_FUNCTION_TRACE ("DsMethodDataSetValue"); @@ -411,32 +409,14 @@ return_ACPI_STATUS (Status); } - /* - * If the object has just been created and is not attached to anything, - * (the reference count is 1), then we can just store it directly into - * the arg/local. Otherwise, we must copy it. - */ - if (Object->Common.ReferenceCount > 1) - { - Status = AcpiUtCopyIobjectToIobject (Object, &NewDesc, WalkState); - if (ACPI_FAILURE (Status)) - { - return_ACPI_STATUS (Status); - } - - ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Object Copied %p, new %p\n", - Object, NewDesc)); - } - else - { /* Increment ref count so object can't be deleted while installed */ - AcpiUtAddReference (NewDesc); - } + AcpiUtAddReference (Object); /* Install the object */ - Node->Object = NewDesc; + Node->Object = Object; + return_ACPI_STATUS (Status); }