/* Destroy all child of the MNP service data. */
EFI_STATUS MnpDestroyServiceChild(IN OUT MNP_SERVICE_DATA *MnpServiceData)
/* Destroy all child of the MNP service data. */
EFI_STATUS MnpDestroyServiceChild(IN OUT MNP_SERVICE_DATA *MnpServiceData)
{
  LIST_ENTRY  *List;
  EFI_STATUS  Status;
  UINTN       ListLength;
  List = &MnpServiceData->ChildrenList;
  Status = NetDestroyLinkList (
             List,
             MnpDestoryChildEntry,
             &MnpServiceData->ServiceBinding,
             &ListLength
             );
  if (EFI_ERROR (Status) || (ListLength != 0)) {
    return EFI_DEVICE_ERROR;
  }
  return EFI_SUCCESS;
}