/* The ReturnNode must be generated inside a Method body scope. */
STATIC EFI_STATUS EFIAPI AmlCodeGenReturnInteger(IN UINT64 Integer, IN AML_NODE_HEADER *ParentNode OPTIONAL, OUT AML_OBJECT_NODE **NewObjectNode OPTIONAL)
/* The ReturnNode must be generated inside a Method body scope. */
STATIC EFI_STATUS EFIAPI AmlCodeGenReturnInteger(IN UINT64 Integer, IN AML_NODE_HEADER *ParentNode OPTIONAL, OUT AML_OBJECT_NODE **NewObjectNode OPTIONAL)
{
  EFI_STATUS       Status;
  AML_OBJECT_NODE  *IntNode;
  IntNode = NULL;
  Status = AmlCodeGenInteger (Integer, &IntNode);
  if (EFI_ERROR (Status)) {
    ASSERT (0);
    return Status;
  }
  Status = AmlCodeGenReturn (
             (AML_NODE_HEADER *)IntNode,
             ParentNode,
             NewObjectNode
             );
  ASSERT_EFI_ERROR (Status);
  return Status;
}