mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 15:44:04 +02:00
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:
parent
4efc8a402d
commit
1b59de8444
@ -256,7 +256,7 @@ Dns4Configure (
|
|||||||
goto ON_EXIT;
|
goto ON_EXIT;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (DnsConfigData->DnsServerListCount == 0 || DnsConfigData->DnsServerList == NULL) {
|
if (DnsConfigData->DnsServerListCount == 0) {
|
||||||
gBS->RestoreTPL (OldTpl);
|
gBS->RestoreTPL (OldTpl);
|
||||||
|
|
||||||
//
|
//
|
||||||
@ -1078,7 +1078,7 @@ Dns6Configure (
|
|||||||
goto ON_EXIT;
|
goto ON_EXIT;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (DnsConfigData->DnsServerCount == 0 || DnsConfigData->DnsServerList == NULL) {
|
if (DnsConfigData->DnsServerCount == 0) {
|
||||||
gBS->RestoreTPL (OldTpl);
|
gBS->RestoreTPL (OldTpl);
|
||||||
|
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user