mirror of
https://github.com/acpica/acpica/
synced 2025-03-09 15:51:37 +03:00
Use local instead of a bunch of pointer derefs
date 2003.02.06.21.07.00; author rmoore1; state Exp;
This commit is contained in:
parent
59d840eef0
commit
9bb16af42d
@ -2,7 +2,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Module Name: hwgpe - Low level GPE enable/disable/clear functions
|
||||
* $Revision: 1.44 $
|
||||
* $Revision: 1.45 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -386,10 +386,11 @@ AcpiHwGetGpeStatus (
|
||||
UINT32 GpeNumber,
|
||||
ACPI_EVENT_STATUS *EventStatus)
|
||||
{
|
||||
UINT32 InByte = 0;
|
||||
UINT8 BitMask = 0;
|
||||
UINT32 InByte;
|
||||
UINT8 BitMask;
|
||||
ACPI_GPE_REGISTER_INFO *GpeRegisterInfo;
|
||||
ACPI_STATUS Status;
|
||||
ACPI_EVENT_STATUS LocalEventStatus = 0;
|
||||
|
||||
|
||||
ACPI_FUNCTION_ENTRY ();
|
||||
@ -400,8 +401,6 @@ AcpiHwGetGpeStatus (
|
||||
return (AE_BAD_PARAMETER);
|
||||
}
|
||||
|
||||
(*EventStatus) = 0;
|
||||
|
||||
/* Get the info block for the entire GPE register */
|
||||
|
||||
GpeRegisterInfo = AcpiEvGetGpeRegisterInfo (GpeNumber);
|
||||
@ -424,14 +423,14 @@ AcpiHwGetGpeStatus (
|
||||
|
||||
if (BitMask & InByte)
|
||||
{
|
||||
(*EventStatus) |= ACPI_EVENT_FLAG_ENABLED;
|
||||
LocalEventStatus |= ACPI_EVENT_FLAG_ENABLED;
|
||||
}
|
||||
|
||||
/* GPE Enabled for wake? */
|
||||
|
||||
if (BitMask & GpeRegisterInfo->WakeEnable)
|
||||
{
|
||||
(*EventStatus) |= ACPI_EVENT_FLAG_WAKE_ENABLED;
|
||||
LocalEventStatus |= ACPI_EVENT_FLAG_WAKE_ENABLED;
|
||||
}
|
||||
|
||||
/* GPE active (set)? */
|
||||
@ -444,8 +443,12 @@ AcpiHwGetGpeStatus (
|
||||
|
||||
if (BitMask & InByte)
|
||||
{
|
||||
(*EventStatus) |= ACPI_EVENT_FLAG_SET;
|
||||
LocalEventStatus |= ACPI_EVENT_FLAG_SET;
|
||||
}
|
||||
|
||||
/* Set return value */
|
||||
|
||||
(*EventStatus) = LocalEventStatus;
|
||||
return (AE_OK);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user