NetworkPkg/DnsDxe: cosmetic fixups

add whitespace according to coding style.

Cc: Maciej Rabeda <maciej.rabeda@linux.intel.com>
Cc: Jiaxin Wu <jiaxin.wu@intel.com>
Cc: Siyuan Fu <siyuan.fu@intel.com>
Signed-off-by: Wenyi Xie <xiewenyi2@huawei.com>
Reviewed-by: Maciej Rabeda <maciej.rabeda@linux.intel.com>
This commit is contained in:
wenyi,xie via groups.io 2020-12-04 15:05:03 +08:00 committed by mergify[bot]
parent 4e51155487
commit 4ad1bd63b2
5 changed files with 11 additions and 11 deletions

View File

@ -131,7 +131,7 @@ ParseDhcp4Ack (
return EFI_OUT_OF_RESOURCES; return EFI_OUT_OF_RESOURCES;
} }
for(Count=0; Count < ServerCount; Count++){ for (Count=0; Count < ServerCount; Count++) {
CopyMem (ServerList + Count, &OptionList[Index]->Data[4 * Count], sizeof (EFI_IPv4_ADDRESS)); CopyMem (ServerList + Count, &OptionList[Index]->Data[4 * Count], sizeof (EFI_IPv4_ADDRESS));
} }
@ -225,7 +225,7 @@ ParseDhcp6Ack (
return EFI_OUT_OF_RESOURCES; return EFI_OUT_OF_RESOURCES;
} }
for(Count=0; Count < ServerCount; Count++){ for (Count=0; Count < ServerCount; Count++) {
CopyMem (ServerList + Count, &OptionList[Index]->Data[16 * Count], sizeof (EFI_IPv6_ADDRESS)); CopyMem (ServerList + Count, &OptionList[Index]->Data[16 * Count], sizeof (EFI_IPv6_ADDRESS));
} }

View File

@ -197,11 +197,11 @@ DnsDestroyService (
{ {
UdpIoFreeIo (DnsSb->ConnectUdp); UdpIoFreeIo (DnsSb->ConnectUdp);
if (DnsSb->TimerToGetMap != NULL){ if (DnsSb->TimerToGetMap != NULL) {
gBS->CloseEvent (DnsSb->TimerToGetMap); gBS->CloseEvent (DnsSb->TimerToGetMap);
} }
if (DnsSb->Timer != NULL){ if (DnsSb->Timer != NULL) {
gBS->CloseEvent (DnsSb->Timer); gBS->CloseEvent (DnsSb->Timer);
} }

View File

@ -799,7 +799,7 @@ UpdateDns4Cache (
Item->DnsCache.Timeout = DnsCacheEntry.Timeout; Item->DnsCache.Timeout = DnsCacheEntry.Timeout;
return EFI_SUCCESS; return EFI_SUCCESS;
}else { } else {
return EFI_ACCESS_DENIED; return EFI_ACCESS_DENIED;
} }
} }
@ -897,7 +897,7 @@ UpdateDns6Cache (
Item->DnsCache.Timeout = DnsCacheEntry.Timeout; Item->DnsCache.Timeout = DnsCacheEntry.Timeout;
return EFI_SUCCESS; return EFI_SUCCESS;
}else { } else {
return EFI_ACCESS_DENIED; return EFI_ACCESS_DENIED;
} }
} }
@ -1080,7 +1080,7 @@ IsValidDnsResponse (
NET_LIST_FOR_EACH (Entry, &TokensMap->Used) { NET_LIST_FOR_EACH (Entry, &TokensMap->Used) {
*Item = NET_LIST_USER_STRUCT (Entry, NET_MAP_ITEM, Link); *Item = NET_LIST_USER_STRUCT (Entry, NET_MAP_ITEM, Link);
Packet = (NET_BUF *) ((*Item)->Value); Packet = (NET_BUF *) ((*Item)->Value);
if (Packet == NULL){ if (Packet == NULL) {
continue; continue;
} else { } else {
@ -2127,7 +2127,7 @@ DnsOnTimerRetransmit (
} }
} }
} }
}else { } else {
// //
// Iterate through all the children of the DNS service instance. Time // Iterate through all the children of the DNS service instance. Time
// out the packet. If maximum retries reached, clean the Token up. // out the packet. If maximum retries reached, clean the Token up.

View File

@ -125,7 +125,7 @@ typedef struct {
EFI_DNS6_COMPLETION_TOKEN *Token; EFI_DNS6_COMPLETION_TOKEN *Token;
} DNS6_TOKEN_ENTRY; } DNS6_TOKEN_ENTRY;
union _DNS_FLAGS{ union _DNS_FLAGS {
struct { struct {
UINT16 RCode:4; UINT16 RCode:4;
UINT16 Zero:3; UINT16 Zero:3;

View File

@ -217,7 +217,7 @@ Dns4Configure (
Dns4InstanceCancelToken(Instance, NULL); Dns4InstanceCancelToken(Instance, NULL);
} }
if (Instance->UdpIo != NULL){ if (Instance->UdpIo != NULL) {
UdpIoCleanIo (Instance->UdpIo); UdpIoCleanIo (Instance->UdpIo);
} }
@ -1061,7 +1061,7 @@ Dns6Configure (
Dns6InstanceCancelToken(Instance, NULL); Dns6InstanceCancelToken(Instance, NULL);
} }
if (Instance->UdpIo != NULL){ if (Instance->UdpIo != NULL) {
UdpIoCleanIo (Instance->UdpIo); UdpIoCleanIo (Instance->UdpIo);
} }