DefFieldOp IS a field opcode (bug fix)

date	2000.02.04.22.49.00;	author rmoore1;	state Exp;
This commit is contained in:
aystarik 2005-06-29 18:11:19 +00:00
parent 722244ada6
commit 586931e945

View File

@ -339,6 +339,7 @@ PsIsFieldOp (
UINT32 Opcode)
{
return (Opcode == AML_CreateFieldOp
|| Opcode == AML_DefFieldOp
|| Opcode == AML_IndexFieldOp
|| Opcode == AML_BankFieldOp);
}
@ -380,17 +381,6 @@ PsToBytelistOp (
}
/*
* Cast away const-ness
*/
ACPI_GENERIC_OP*
PsToNonconstOp (
ACPI_GENERIC_OP *Op)
{
return (ACPI_GENERIC_OP*) Op;
}
/*
* Get op's name (4-byte name segment) or 0 if unnamed
*/
@ -398,7 +388,7 @@ UINT32
PsGetName (
ACPI_GENERIC_OP *Op)
{
ACPI_NAMED_OP *Named = PsToNamedOp (PsToNonconstOp (Op));
ACPI_NAMED_OP *Named = PsToNamedOp (Op);
return (Named ? Named->Name : 0);
}