NetworkPkg/DnsDxe: Remove the unnecessary if condition check in DNS.Config

Cc: Ye Ting <ting.ye@intel.com>
Cc: Fu Siyuan <siyuan.fu@intel.com>
Cc: Wang Fan <fan.wang@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
This commit is contained in:
Jiaxin Wu 2017-11-16 09:03:08 +08:00
parent 4efc8a402d
commit 1b59de8444
1 changed files with 2 additions and 2 deletions

View File

@ -256,7 +256,7 @@ Dns4Configure (
goto ON_EXIT;
}
if (DnsConfigData->DnsServerListCount == 0 || DnsConfigData->DnsServerList == NULL) {
if (DnsConfigData->DnsServerListCount == 0) {
gBS->RestoreTPL (OldTpl);
//
@ -1078,7 +1078,7 @@ Dns6Configure (
goto ON_EXIT;
}
if (DnsConfigData->DnsServerCount == 0 || DnsConfigData->DnsServerList == NULL) {
if (DnsConfigData->DnsServerCount == 0) {
gBS->RestoreTPL (OldTpl);
//