]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Bus/Pci/PciBus/Dxe/PciEnumeratorSupport.c
Clean up MSA file of the checked in modules which include:
[mirror_edk2.git] / EdkModulePkg / Bus / Pci / PciBus / Dxe / PciEnumeratorSupport.c
index 3b796a6b42822364e2f2a0e39effba14e4802fa5..0403402ddd62181ad96ebb753912a8ff46ded4c7 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
@@ -255,8 +255,8 @@ Returns:
                       Device,\r
                       Func\r
                       );\r
-      if (gFullEnumeration) {\r
-        InitializeP2C (PciIoDevice);\r
+      if ((PciIoDevice != NULL) && gFullEnumeration) {\r
+        InitializeP2C (PciIoDevice);      \r
       }\r
     } else {\r
 \r
@@ -289,7 +289,7 @@ Returns:
     //\r
     // Special initialization for PPB including making the PPB quiet\r
     //\r
-    if (gFullEnumeration) {\r
+    if ((PciIoDevice != NULL) && gFullEnumeration) {\r
       InitializePpb (PciIoDevice);\r
     }\r
   }\r