mirror of
https://github.com/acpica/acpica/
synced 2025-02-06 00:24:03 +03:00
Cleanup/restructuring
date 2001.10.01.16.56.00; author rmoore1; state Exp;
This commit is contained in:
parent
57ad0a353f
commit
1ef1e50ca8
@ -1,7 +1,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Module Name: evregion - ACPI AddressSpace (OpRegion) handler dispatch
|
||||
* $Revision: 1.110 $
|
||||
* $Revision: 1.111 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -246,17 +246,16 @@ AcpiEvExecuteRegMethod (
|
||||
Params[1] = AcpiUtCreateInternalObject (ACPI_TYPE_INTEGER);
|
||||
if (!Params[1])
|
||||
{
|
||||
AcpiUtRemoveReference (Params[0]);
|
||||
return_ACPI_STATUS (AE_NO_MEMORY);
|
||||
Status = AE_NO_MEMORY;
|
||||
goto Cleanup;
|
||||
}
|
||||
|
||||
Params[2] = NULL;
|
||||
|
||||
/*
|
||||
* Set up the parameter objects
|
||||
*/
|
||||
Params[0]->Integer.Value = RegionObj->Region.SpaceId;
|
||||
Params[1]->Integer.Value = Function;
|
||||
Params[2] = NULL;
|
||||
|
||||
/*
|
||||
* Execute the method, no return value
|
||||
@ -264,10 +263,11 @@ AcpiEvExecuteRegMethod (
|
||||
DEBUG_EXEC(AcpiUtDisplayInitPathname (RegionObj->Region.Extra->Extra.Method_REG, " [Method]"));
|
||||
Status = AcpiNsEvaluateByHandle (RegionObj->Region.Extra->Extra.Method_REG, Params, NULL);
|
||||
|
||||
|
||||
AcpiUtRemoveReference (Params[0]);
|
||||
AcpiUtRemoveReference (Params[1]);
|
||||
|
||||
Cleanup:
|
||||
AcpiUtRemoveReference (Params[0]);
|
||||
|
||||
return_ACPI_STATUS (Status);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user