diff options
author | wenyi,xie via groups.io <xiewenyi2=huawei.com@groups.io> | 2020-12-04 15:05:03 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-01-05 14:37:21 +0000 |
commit | 4ad1bd63b28ca103eba21e383c4375a3a91080cf (patch) | |
tree | 6c8ef36f0accee61f1722e1bf073de5c2e96b488 /NetworkPkg | |
parent | 4e511554872c318f8bce196f1cddf69432886bfa (diff) | |
download | edk2-4ad1bd63b28ca103eba21e383c4375a3a91080cf.zip edk2-4ad1bd63b28ca103eba21e383c4375a3a91080cf.tar.gz edk2-4ad1bd63b28ca103eba21e383c4375a3a91080cf.tar.bz2 |
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>
Diffstat (limited to 'NetworkPkg')
-rw-r--r-- | NetworkPkg/DnsDxe/DnsDhcp.c | 4 | ||||
-rw-r--r-- | NetworkPkg/DnsDxe/DnsDriver.c | 4 | ||||
-rw-r--r-- | NetworkPkg/DnsDxe/DnsImpl.c | 8 | ||||
-rw-r--r-- | NetworkPkg/DnsDxe/DnsImpl.h | 2 | ||||
-rw-r--r-- | NetworkPkg/DnsDxe/DnsProtocol.c | 4 |
5 files changed, 11 insertions, 11 deletions
diff --git a/NetworkPkg/DnsDxe/DnsDhcp.c b/NetworkPkg/DnsDxe/DnsDhcp.c index 9ea9d7c..8f8b2aa 100644 --- a/NetworkPkg/DnsDxe/DnsDhcp.c +++ b/NetworkPkg/DnsDxe/DnsDhcp.c @@ -131,7 +131,7 @@ ParseDhcp4Ack ( 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));
}
@@ -225,7 +225,7 @@ ParseDhcp6Ack ( 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));
}
diff --git a/NetworkPkg/DnsDxe/DnsDriver.c b/NetworkPkg/DnsDxe/DnsDriver.c index f099da8..4db0c6b 100644 --- a/NetworkPkg/DnsDxe/DnsDriver.c +++ b/NetworkPkg/DnsDxe/DnsDriver.c @@ -197,11 +197,11 @@ DnsDestroyService ( {
UdpIoFreeIo (DnsSb->ConnectUdp);
- if (DnsSb->TimerToGetMap != NULL){
+ if (DnsSb->TimerToGetMap != NULL) {
gBS->CloseEvent (DnsSb->TimerToGetMap);
}
- if (DnsSb->Timer != NULL){
+ if (DnsSb->Timer != NULL) {
gBS->CloseEvent (DnsSb->Timer);
}
diff --git a/NetworkPkg/DnsDxe/DnsImpl.c b/NetworkPkg/DnsDxe/DnsImpl.c index 25628a5..2edcb28 100644 --- a/NetworkPkg/DnsDxe/DnsImpl.c +++ b/NetworkPkg/DnsDxe/DnsImpl.c @@ -799,7 +799,7 @@ UpdateDns4Cache ( Item->DnsCache.Timeout = DnsCacheEntry.Timeout;
return EFI_SUCCESS;
- }else {
+ } else {
return EFI_ACCESS_DENIED;
}
}
@@ -897,7 +897,7 @@ UpdateDns6Cache ( Item->DnsCache.Timeout = DnsCacheEntry.Timeout;
return EFI_SUCCESS;
- }else {
+ } else {
return EFI_ACCESS_DENIED;
}
}
@@ -1080,7 +1080,7 @@ IsValidDnsResponse ( NET_LIST_FOR_EACH (Entry, &TokensMap->Used) {
*Item = NET_LIST_USER_STRUCT (Entry, NET_MAP_ITEM, Link);
Packet = (NET_BUF *) ((*Item)->Value);
- if (Packet == NULL){
+ if (Packet == NULL) {
continue;
} else {
@@ -2127,7 +2127,7 @@ DnsOnTimerRetransmit ( }
}
}
- }else {
+ } else {
//
// Iterate through all the children of the DNS service instance. Time
// out the packet. If maximum retries reached, clean the Token up.
diff --git a/NetworkPkg/DnsDxe/DnsImpl.h b/NetworkPkg/DnsDxe/DnsImpl.h index 10bc399..affbb4b 100644 --- a/NetworkPkg/DnsDxe/DnsImpl.h +++ b/NetworkPkg/DnsDxe/DnsImpl.h @@ -125,7 +125,7 @@ typedef struct { EFI_DNS6_COMPLETION_TOKEN *Token;
} DNS6_TOKEN_ENTRY;
-union _DNS_FLAGS{
+union _DNS_FLAGS {
struct {
UINT16 RCode:4;
UINT16 Zero:3;
diff --git a/NetworkPkg/DnsDxe/DnsProtocol.c b/NetworkPkg/DnsDxe/DnsProtocol.c index 4acc5fc..a0bb58e 100644 --- a/NetworkPkg/DnsDxe/DnsProtocol.c +++ b/NetworkPkg/DnsDxe/DnsProtocol.c @@ -217,7 +217,7 @@ Dns4Configure ( Dns4InstanceCancelToken(Instance, NULL);
}
- if (Instance->UdpIo != NULL){
+ if (Instance->UdpIo != NULL) {
UdpIoCleanIo (Instance->UdpIo);
}
@@ -1061,7 +1061,7 @@ Dns6Configure ( Dns6InstanceCancelToken(Instance, NULL);
}
- if (Instance->UdpIo != NULL){
+ if (Instance->UdpIo != NULL) {
UdpIoCleanIo (Instance->UdpIo);
}
|