/* Non-FMP instance to unregister Esrt Entry from ESRT Cache. */
EFI_STATUS EFIAPI EsrtDxeUnRegisterEsrtEntry(IN EFI_GUID *FwClass)
/* Non-FMP instance to unregister Esrt Entry from ESRT Cache. */
EFI_STATUS EFIAPI EsrtDxeUnRegisterEsrtEntry(IN EFI_GUID *FwClass)
{
  EFI_STATUS  Status;
  if (FwClass == NULL) {
    return EFI_INVALID_PARAMETER;
  }
  Status = EfiAcquireLockOrFail (&mPrivate.NonFmpLock);
  if (EFI_ERROR (Status)) {
    return Status;
  }
  Status = DeleteEsrtEntry (FwClass, ESRT_FROM_NONFMP);
  EfiReleaseLock (&mPrivate.NonFmpLock);
  return Status;
}