fixed ECC and Klocwork issues.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8501 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
//
|
||||
|
Reference in New Issue
Block a user