summaryrefslogtreecommitdiff
path: root/EdkModulePkg
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2007-05-31 09:25:52 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2007-05-31 09:25:52 +0000
commit08c01475f5bb34ce183b5dba93f9f637b59ff4dd (patch)
tree161aebadad1d38ac8812a79f4262a7ed378c33c8 /EdkModulePkg
parentc75bbd0e5b127eb2bda7ebbbe4a4019d2469a9f6 (diff)
downloadedk2-platforms-08c01475f5bb34ce183b5dba93f9f637b59ff4dd.tar.xz
Rewrite the confusion statement.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2610 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkModulePkg')
-rw-r--r--EdkModulePkg/Bus/Pci/Undi/RuntimeDxe/Init.c40
1 files changed, 16 insertions, 24 deletions
diff --git a/EdkModulePkg/Bus/Pci/Undi/RuntimeDxe/Init.c b/EdkModulePkg/Bus/Pci/Undi/RuntimeDxe/Init.c
index 30056d91f2..89d7a1f4f0 100644
--- a/EdkModulePkg/Bus/Pci/Undi/RuntimeDxe/Init.c
+++ b/EdkModulePkg/Bus/Pci/Undi/RuntimeDxe/Init.c
@@ -1,6 +1,6 @@
/*++
-Copyright (c) 2006, Intel Corporation
+Copyright (c) 2006 - 2007, 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
@@ -1056,33 +1056,25 @@ Returns:
CfgPtr = gST->ConfigurationTable;
for (Index = 0; Index < gST->NumberOfTableEntries; Index++) {
- Status = CompareGuid (
- &CfgPtr->VendorGuid,
- &gEfiNetworkInterfaceIdentifierProtocolGuid_31
- );
- if (Status != EFI_SUCCESS) {
- break;
- }
-
- CfgPtr++;
- }
+ if (CompareGuid (&CfgPtr->VendorGuid, &gEfiNetworkInterfaceIdentifierProtocolGuid_31)) {
+ TmpData = (NII_TABLE *) CfgPtr->VendorTable;
+ //
+ // go to the last link
+ //
+ while (TmpData->NextLink != NULL) {
+ TmpData = TmpData->NextLink;
+ }
- if (Index < gST->NumberOfTableEntries) {
- TmpData = (NII_TABLE *) CfgPtr->VendorTable;
+ TmpData->NextLink = UndiData;
- //
- // go to the last link
- //
- while (TmpData->NextLink != NULL) {
- TmpData = TmpData->NextLink;
+ //
+ // 1st one in chain
+ //
+ UndiData = (NII_TABLE *) CfgPtr->VendorTable;
+ break;
}
- TmpData->NextLink = UndiData;
-
- //
- // 1st one in chain
- //
- UndiData = (NII_TABLE *) CfgPtr->VendorTable;
+ CfgPtr++;
}
//