Cc: Ye Ting <[email protected]>
Cc: Fu Siyuan <[email protected]>
Cc: Wang Fan <[email protected]>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Wu Jiaxin <[email protected]>
---
NetworkPkg/DnsDxe/DnsProtocol.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/NetworkPkg/DnsDxe/DnsProtocol.c b/NetworkPkg/DnsDxe/DnsProtocol.c
index bd189ae..7435607 100644
--- a/NetworkPkg/DnsDxe/DnsProtocol.c
+++ b/NetworkPkg/DnsDxe/DnsProtocol.c
@@ -254,11 +254,11 @@ Dns4Configure (
Status = Dns4CopyConfigure (&Instance->Dns4CfgData, DnsConfigData);
if (EFI_ERROR (Status)) {
goto ON_EXIT;
}
- if (DnsConfigData->DnsServerListCount == 0 || DnsConfigData->DnsServerList
== NULL) {
+ if (DnsConfigData->DnsServerListCount == 0) {
gBS->RestoreTPL (OldTpl);
//
// The DNS instance will retrieve DNS server from DHCP Server
//
@@ -1076,11 +1076,11 @@ Dns6Configure (
Status = Dns6CopyConfigure (&Instance->Dns6CfgData, DnsConfigData);
if (EFI_ERROR (Status)) {
goto ON_EXIT;
}
- if (DnsConfigData->DnsServerCount == 0 || DnsConfigData->DnsServerList ==
NULL) {
+ if (DnsConfigData->DnsServerCount == 0) {
gBS->RestoreTPL (OldTpl);
//
//The DNS instance will retrieve DNS server from DHCP Server.
//
--
1.9.5.msysgit.1
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel