mirror of
https://github.com/acpica/acpica/
synced 2025-01-18 15:39:18 +03:00
Converted to new return macros
date 99.08.13.16.59.00; author rmoore1; state Exp;
This commit is contained in:
parent
dc8678e37e
commit
a46327d8e6
@ -171,8 +171,7 @@ HwSetMode (
|
||||
Status = AE_OK;
|
||||
}
|
||||
|
||||
FUNCTION_EXIT;
|
||||
return (Status);
|
||||
return_ACPI_STATUS (Status);
|
||||
}
|
||||
|
||||
|
||||
@ -199,13 +198,11 @@ HwGetMode (void)
|
||||
|
||||
if (READ_ACPI_REGISTER (SCI_EN))
|
||||
{
|
||||
FUNCTION_EXIT;
|
||||
return (SYS_MODE_ACPI);
|
||||
return_VALUE (SYS_MODE_ACPI);
|
||||
}
|
||||
else
|
||||
{
|
||||
FUNCTION_EXIT;
|
||||
return (SYS_MODE_LEGACY);
|
||||
return_VALUE (SYS_MODE_LEGACY);
|
||||
}
|
||||
}
|
||||
|
||||
@ -270,6 +267,5 @@ HwGetModeCapabilities (void)
|
||||
}
|
||||
}
|
||||
|
||||
FUNCTION_EXIT;
|
||||
return (SystemFlags & SYS_MODES_MASK);
|
||||
return_VALUE (SystemFlags & SYS_MODES_MASK);
|
||||
}
|
||||
|
@ -151,8 +151,7 @@ HwGetBitShift (
|
||||
for (Shift = 0; ((Mask >> Shift) & 1) == 0; Shift++)
|
||||
{ ; }
|
||||
|
||||
FUNCTION_EXIT;
|
||||
return (Shift);
|
||||
return_VALUE (Shift);
|
||||
}
|
||||
|
||||
|
||||
@ -210,7 +209,7 @@ HwClearAcpiStatus (void)
|
||||
}
|
||||
}
|
||||
|
||||
FUNCTION_EXIT;
|
||||
return_VOID;
|
||||
}
|
||||
|
||||
|
||||
@ -248,8 +247,7 @@ HwObtainSleepTypeRegisterData (
|
||||
ObjDesc = AllocateObjectDesc ();
|
||||
if (!ObjDesc)
|
||||
{
|
||||
FUNCTION_EXIT;
|
||||
return AE_NO_MEMORY;
|
||||
return_ACPI_STATUS (AE_NO_MEMORY);
|
||||
}
|
||||
|
||||
if (!SleepStateReq || !Slp_TypA || !Slp_TypB)
|
||||
@ -338,8 +336,7 @@ HwObtainSleepTypeRegisterData (
|
||||
}
|
||||
|
||||
CmFree (ObjDesc);
|
||||
FUNCTION_EXIT;
|
||||
return (Status);
|
||||
return_ACPI_STATUS (Status);
|
||||
}
|
||||
|
||||
|
||||
@ -728,6 +725,5 @@ HwRegisterIO (
|
||||
RegisterValue >>= HwGetBitShift (Mask);
|
||||
|
||||
DEBUG_PRINT (TRACE_IO, ("Register I/O: returning 0x%X\n", RegisterValue));
|
||||
FUNCTION_EXIT;
|
||||
return (RegisterValue);
|
||||
return_ACPI_STATUS (RegisterValue);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user