]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Rewrite the confusion statement.
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 31 May 2007 09:25:52 +0000 (09:25 +0000)
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 31 May 2007 09:25:52 +0000 (09:25 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2610 6f19259b-4bc3-4df7-8a09-765794883524

EdkModulePkg/Bus/Pci/Undi/RuntimeDxe/Init.c

index 30056d91f28703418f45abdfc8a70da4493c35be..89d7a1f4f00b21c39497640d362ff4b56b25fd58 100644 (file)
@@ -1,6 +1,6 @@
 /*++\r
 \r
-Copyright (c) 2006, Intel Corporation                                                         \r
+Copyright (c) 2006 - 2007, Intel Corporation                                                         \r
 All rights reserved. This program and the accompanying materials                          \r
 are licensed and made available under the terms and conditions of the BSD License         \r
 which accompanies this distribution.  The full text of the license may be found at        \r
@@ -1056,33 +1056,25 @@ Returns:
   CfgPtr = gST->ConfigurationTable;\r
 \r
   for (Index = 0; Index < gST->NumberOfTableEntries; Index++) {\r
-    Status = CompareGuid (\r
-              &CfgPtr->VendorGuid,\r
-              &gEfiNetworkInterfaceIdentifierProtocolGuid_31\r
-              );\r
-    if (Status != EFI_SUCCESS) {\r
-      break;\r
-    }\r
-\r
-    CfgPtr++;\r
-  }\r
+    if (CompareGuid (&CfgPtr->VendorGuid, &gEfiNetworkInterfaceIdentifierProtocolGuid_31)) {\r
+      TmpData = (NII_TABLE *) CfgPtr->VendorTable;\r
+      //\r
+      // go to the last link\r
+      //\r
+      while (TmpData->NextLink != NULL) {\r
+        TmpData = TmpData->NextLink;\r
+      }\r
 \r
-  if (Index < gST->NumberOfTableEntries) {\r
-    TmpData = (NII_TABLE *) CfgPtr->VendorTable;\r
+      TmpData->NextLink = UndiData;\r
 \r
-    //\r
-    // go to the last link\r
-    //\r
-    while (TmpData->NextLink != NULL) {\r
-      TmpData = TmpData->NextLink;\r
+      //\r
+      // 1st one in chain\r
+      //\r
+      UndiData = (NII_TABLE *) CfgPtr->VendorTable;\r
+      break;\r
     }\r
 \r
-    TmpData->NextLink = UndiData;\r
-\r
-    //\r
-    // 1st one in chain\r
-    //\r
-    UndiData = (NII_TABLE *) CfgPtr->VendorTable;\r
+    CfgPtr++;\r
   }\r
 \r
   //\r