diff options
author | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-06-09 03:47:29 +0000 |
---|---|---|
committer | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-06-09 03:47:29 +0000 |
commit | c72216a6274deaaee46ebf58e3ae84f119a94b7f (patch) | |
tree | 6192c5e157fa844fa2d4a90d823f8abec7e54ef8 /IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciLib.c | |
parent | 261c3596a30b92539109894541f17d5f6b7c985a (diff) | |
download | edk2-platforms-c72216a6274deaaee46ebf58e3ae84f119a94b7f.tar.xz |
fixed ECC and Klocwork issues.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8501 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciLib.c')
-rw-r--r-- | IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciLib.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciLib.c b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciLib.c index 7a870090cc..486e318fca 100644 --- a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciLib.c +++ b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciLib.c @@ -466,7 +466,6 @@ PciHostBridgeResourceAllocator_WithoutHotPlugDeviceSupport ( RootBridgeDev->Handle,
&AcpiConfig
);
-
if (EFI_ERROR (Status)) {
return Status;
}
@@ -551,9 +550,7 @@ PciHostBridgeResourceAllocator_WithoutHotPlugDeviceSupport ( PMem64Bridge
);
- if (AcpiConfig != NULL) {
- FreePool (AcpiConfig);
- }
+ FreePool (AcpiConfig);
}
//
@@ -1044,9 +1041,7 @@ PciHostBridgeResourceAllocator_WithHotPlugDeviceSupport ( PMem64Bridge
);
- if (AcpiConfig != NULL) {
- gBS->FreePool (AcpiConfig);
- }
+ FreePool (AcpiConfig);
}
//
|