diff options
author | Fu Siyuan <siyuan.fu@intel.com> | 2017-12-13 10:21:53 +0800 |
---|---|---|
committer | Fu Siyuan <siyuan.fu@intel.com> | 2017-12-22 13:46:29 +0800 |
commit | 280a913ac55c54d5228962f957afd673f75e54bd (patch) | |
tree | 4dc2c1ad8d0f3592aa3000f67b9b130381e1dc19 /MdeModulePkg | |
parent | 6ccfeec24c9f5d39304db7835a5a771fd01eee3f (diff) | |
download | edk2-280a913ac55c54d5228962f957afd673f75e54bd.zip edk2-280a913ac55c54d5228962f957afd673f75e54bd.tar.gz edk2-280a913ac55c54d5228962f957afd673f75e54bd.tar.bz2 |
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>
Diffstat (limited to 'MdeModulePkg')
-rw-r--r-- | MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Config2Impl.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Config2Impl.c b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Config2Impl.c index f2640b7..488b3f5 100644 --- a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Config2Impl.c +++ b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Config2Impl.c @@ -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;
//
|