MdeModulePkg/Ip4Dxe: Remove redundant code in Ip4Config2InitInstance().

Instance->Dhcp4Event is not necessary to be created in Ip4Config2InitInstance.
Because it will created in Ip4StartAutoConfig() later.

Reviewed-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Wu Jiaxin <jiaxin.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
This commit is contained in:
Fu Siyuan 2017-12-13 10:21:53 +08:00
parent 6ccfeec24c
commit 280a913ac5
1 changed files with 0 additions and 12 deletions

View File

@ -2062,18 +2062,6 @@ Ip4Config2InitInstance (
DataItem->SetData = Ip4Config2SetDnsServer;
DataItem->Status = EFI_NOT_FOUND;
//
// Create the event used for DHCP.
//
Status = gBS->CreateEvent (
EVT_NOTIFY_SIGNAL,
TPL_CALLBACK,
Ip4Config2OnDhcp4Event,
Instance,
&Instance->Dhcp4Event
);
ASSERT_EFI_ERROR (Status);
Instance->Configured = TRUE;
//