mirror of https://github.com/acidanthera/audk.git
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:
parent
6ccfeec24c
commit
280a913ac5
|
@ -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;
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue