diff options
author | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-06-30 07:20:33 +0000 |
---|---|---|
committer | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-06-30 07:20:33 +0000 |
commit | 7bce0c5a0eb806a55d7231b05769d0efc71cdc59 (patch) | |
tree | 77078ca79b96fb4f426e501beca674c627c30247 /MdeModulePkg/Universal/Network/ArpDxe/ArpImpl.c | |
parent | 4611e327f49b245d7efcefbbff2070ab9ed0fc8b (diff) | |
download | edk2-platforms-7bce0c5a0eb806a55d7231b05769d0efc71cdc59.tar.xz |
Clean codes per ECC.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5384 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/Network/ArpDxe/ArpImpl.c')
-rw-r--r-- | MdeModulePkg/Universal/Network/ArpDxe/ArpImpl.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/MdeModulePkg/Universal/Network/ArpDxe/ArpImpl.c b/MdeModulePkg/Universal/Network/ArpDxe/ArpImpl.c index 797ebd0ba0..e29fbf872c 100644 --- a/MdeModulePkg/Universal/Network/ArpDxe/ArpImpl.c +++ b/MdeModulePkg/Universal/Network/ArpDxe/ArpImpl.c @@ -1,6 +1,6 @@ /** @file
-Copyright (c) 2006 - 2007, Intel Corporation
+Copyright (c) 2006 - 2008, Intel Corporation
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -531,7 +531,6 @@ ArpTimerHandler ( @return The two addresses match or not.
**/
-STATIC
BOOLEAN
ArpMatchAddress (
IN NET_ARP_ADDRESS *AddressOne,
@@ -597,7 +596,7 @@ ArpFindNextCacheEntryInTable ( for (Entry = StartEntry->ForwardLink; Entry != CacheTable; Entry = Entry->ForwardLink) {
CacheEntry = NET_LIST_USER_STRUCT (Entry, ARP_CACHE_ENTRY, List);
- if (FindOpType & MATCH_SW_ADDRESS) {
+ if ((FindOpType & MATCH_SW_ADDRESS) != 0) {
//
// Find by the software address.
//
@@ -609,7 +608,7 @@ ArpFindNextCacheEntryInTable ( }
}
- if (FindOpType & MATCH_HW_ADDRESS) {
+ if ((FindOpType & MATCH_HW_ADDRESS) != 0) {
//
// Find by the hardware address.
//
@@ -930,7 +929,7 @@ ArpConfigureInstance ( // The instance is not configured.
//
- if (ConfigData->SwAddressType == IPv4_ETHER_PROTO_TYPE) {
+ if (ConfigData->SwAddressType == IPV4_ETHER_PROTO_TYPE) {
CopyMem (&Ip, ConfigData->StationAddress, sizeof (IP4_ADDR));
if (!Ip4IsUnicast (NTOHL (Ip), 0)) {
@@ -1224,7 +1223,6 @@ CLEAN_EXIT: @return The count of the deleted cache entries.
**/
-STATIC
UINTN
ArpDeleteCacheEntryInTable (
IN LIST_ENTRY *CacheTable,
|