/* Check the value whether in the valid list. */
STATIC BOOLEAN EFIAPI IsInValidList(IN UINT32 Value, IN UINT32 *ValidList, IN UINT32 ValidListLength)
/* Check the value whether in the valid list. */
STATIC BOOLEAN EFIAPI IsInValidList(IN UINT32 Value, IN UINT32 *ValidList, IN UINT32 ValidListLength)
{
  UINT32  index;
  if (ValidList == NULL) {
    return FALSE;
  }
  for (index = 0; index < ValidListLength; index++) {
    if (ValidList[index] == Value) {
      return TRUE;
    }
  }
  return FALSE;
}