X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FUniversal%2FNetwork%2FIp4Dxe%2FIp4Config2Impl.c;h=fcb2bdd56270287a414d5805147926333d8f0ba8;hp=2da4a513495e138512d5f7c440ca73279edb593b;hb=3d0a49ad47619c30c84bbee8a33f54b64dddbcec;hpb=00f6c6cf9fd7c802b67a1b38209a08c94e7e9616 diff --git a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Config2Impl.c b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Config2Impl.c index 2da4a51349..fcb2bdd562 100644 --- a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Config2Impl.c +++ b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Config2Impl.c @@ -84,22 +84,6 @@ Ip4Config2DestroyDhcp4 ( return Status; } -/** - Start the DHCP configuration for this IP service instance. - It will locates the EFI_IP4_CONFIG2_PROTOCOL, then start the - DHCP configuration. - - @param[in] Instance The IP4 config2 instance to configure. - - @retval EFI_SUCCESS The auto configuration is successfull started. - @retval Others Failed to start auto configuration. - -**/ -EFI_STATUS -Ip4StartAutoConfig ( - IN IP4_CONFIG2_INSTANCE *Instance - ); - /** Update the current policy to NewPolicy. During the transition period, the default router list @@ -992,10 +976,7 @@ Ip4Config2SetPolicy ( } if (NewPolicy == Instance->Policy) { - if (NewPolicy != Ip4Config2PolicyDhcp || Instance->DhcpSuccess) { - return EFI_ABORTED; - } - + return EFI_ABORTED; } else { if (NewPolicy == Ip4Config2PolicyDhcp) { //