From 7ac5805804d034f456d027607c68b27ac4cd253a Mon Sep 17 00:00:00 2001 From: aystarik Date: Wed, 29 Jun 2005 16:56:59 +0000 Subject: [PATCH] Automated cleanup date 2005.05.25.22.19.00; author rmoore1; state Exp; --- source/components/hardware/hwregs.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/source/components/hardware/hwregs.c b/source/components/hardware/hwregs.c index 8a2944225..9c2046254 100644 --- a/source/components/hardware/hwregs.c +++ b/source/components/hardware/hwregs.c @@ -3,7 +3,7 @@ * * Module Name: hwregs - Read/write access functions for the various ACPI * control and status registers. - * $Revision: 1.169 $ + * $Revision: 1.170 $ * ******************************************************************************/ @@ -225,7 +225,7 @@ AcpiGetSleepTypeData ( /* Validate parameters */ - + if ((SleepState > ACPI_S_STATES_MAX) || !SleepTypeA || !SleepTypeB) { @@ -233,7 +233,7 @@ AcpiGetSleepTypeData ( } /* Evaluate the namespace object containing the values for this state */ - + Info.Parameters = NULL; Info.ReturnObject = NULL; SleepStateName = (char *) AcpiGbl_SleepStateNames[SleepState]; @@ -265,9 +265,9 @@ AcpiGetSleepTypeData ( Status = AE_AML_OPERAND_TYPE; } - /* + /* * The package must have at least two elements. NOTE (March 2005): This - * goes against the current ACPI spec which defines this object as a + * goes against the current ACPI spec which defines this object as a * package with one encoded DWORD element. However, existing practice * by BIOS vendors seems to be to have 2 or more elements, at least * one per sleep type (A/B). @@ -281,9 +281,9 @@ AcpiGetSleepTypeData ( /* The first two elements must both be of type Integer */ - else if ((ACPI_GET_OBJECT_TYPE (Info.ReturnObject->Package.Elements[0]) + else if ((ACPI_GET_OBJECT_TYPE (Info.ReturnObject->Package.Elements[0]) != ACPI_TYPE_INTEGER) || - (ACPI_GET_OBJECT_TYPE (Info.ReturnObject->Package.Elements[1]) + (ACPI_GET_OBJECT_TYPE (Info.ReturnObject->Package.Elements[1]) != ACPI_TYPE_INTEGER)) { ACPI_REPORT_ERROR (( @@ -295,10 +295,10 @@ AcpiGetSleepTypeData ( else { /* Valid _Sx_ package size, type, and value */ - - *SleepTypeA = (UINT8) + + *SleepTypeA = (UINT8) (Info.ReturnObject->Package.Elements[0])->Integer.Value; - *SleepTypeB = (UINT8) + *SleepTypeB = (UINT8) (Info.ReturnObject->Package.Elements[1])->Integer.Value; }