diff options
author | Lee Leahy <leroy.p.leahy@intel.com> | 2016-05-11 16:07:55 -0700 |
---|---|---|
committer | Michael Kinney <michael.d.kinney@intel.com> | 2016-05-13 11:34:26 -0700 |
commit | fb308fdb98777503d1bf1442091a3d51cb404d2d (patch) | |
tree | ee730cb9d29dc5ccecf04c383551fc9d4f5be628 /QuarkPlatformPkg/Platform/Pei/PlatformInit | |
parent | 08222019067e168c7f9b2b378b01eac9705e9187 (diff) | |
download | edk2-fb308fdb98777503d1bf1442091a3d51cb404d2d.tar.gz edk2-fb308fdb98777503d1bf1442091a3d51cb404d2d.tar.bz2 edk2-fb308fdb98777503d1bf1442091a3d51cb404d2d.zip |
QuarkPlatformPkg: Fix build errors
Fix build errors detected with GCC 4.8.4: local variable set but not
used!
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Lee Leahy <leroy.p.leahy@intel.com>
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>
Diffstat (limited to 'QuarkPlatformPkg/Platform/Pei/PlatformInit')
-rw-r--r-- | QuarkPlatformPkg/Platform/Pei/PlatformInit/Generic/Recovery.c | 8 | ||||
-rw-r--r-- | QuarkPlatformPkg/Platform/Pei/PlatformInit/MrcWrapper.c | 5 |
2 files changed, 2 insertions, 11 deletions
diff --git a/QuarkPlatformPkg/Platform/Pei/PlatformInit/Generic/Recovery.c b/QuarkPlatformPkg/Platform/Pei/PlatformInit/Generic/Recovery.c index ea67ba9d63..fd7a937dd5 100644 --- a/QuarkPlatformPkg/Platform/Pei/PlatformInit/Generic/Recovery.c +++ b/QuarkPlatformPkg/Platform/Pei/PlatformInit/Generic/Recovery.c @@ -2,7 +2,7 @@ Install Platform EFI_PEI_RECOVERY_MODULE_PPI and Implementation of
EFI_PEI_LOAD_RECOVERY_CAPSULE service.
-Copyright (c) 2013 Intel Corporation.
+Copyright (c) 2013-2016 Intel Corporation.
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
@@ -137,26 +137,21 @@ Returns: UINTN NumberRecoveryCapsules;
UINTN RecoveryCapsuleSize;
EFI_GUID DeviceId;
- BOOLEAN ImageFound;
EFI_PHYSICAL_ADDRESS Address;
VOID *Buffer;
EFI_CAPSULE_HEADER *CapsuleHeader;
EFI_PEI_HOB_POINTERS Hob;
- EFI_PEI_HOB_POINTERS HobOld;
BOOLEAN HobUpdate;
EFI_FIRMWARE_VOLUME_HEADER *FvHeader;
UINTN Index;
- EFI_STATUS AuthStatus;
EFI_GUID mEfiCapsuleHeaderGuid = QUARK_CAPSULE_GUID;
Index = 0;
Status = EFI_SUCCESS;
- AuthStatus = EFI_SUCCESS;
HobUpdate = FALSE;
ProviderAvailable = TRUE;
- ImageFound = FALSE;
NumberOfImageProviders = 0;
DeviceRecoveryModule = NULL;
@@ -284,7 +279,6 @@ Returns: //
Buffer = (VOID *)((UINT8 *) Buffer);
Status = PeiServicesGetHobList ((VOID **)&Hob.Raw);
- HobOld.Raw = Hob.Raw;
while (!END_OF_HOB_LIST (Hob)) {
if (Hob.Header->HobType == EFI_HOB_TYPE_FV) {
DEBUG ((EFI_D_INFO | EFI_D_LOAD, "Hob FV Length: %x\n", Hob.FirmwareVolume->Length));
diff --git a/QuarkPlatformPkg/Platform/Pei/PlatformInit/MrcWrapper.c b/QuarkPlatformPkg/Platform/Pei/PlatformInit/MrcWrapper.c index 70c9cf98a0..df6c1cc232 100644 --- a/QuarkPlatformPkg/Platform/Pei/PlatformInit/MrcWrapper.c +++ b/QuarkPlatformPkg/Platform/Pei/PlatformInit/MrcWrapper.c @@ -1089,7 +1089,6 @@ RetriveRequiredMemorySize ( OUT UINTN *Size
)
{
- EFI_STATUS Status;
EFI_PEI_HOB_POINTERS Hob;
EFI_MEMORY_TYPE_INFORMATION *MemoryData;
UINT8 Index;
@@ -1099,7 +1098,7 @@ RetriveRequiredMemorySize ( TempPageNum = 0;
Index = 0;
- Status = PeiServicesGetHobList ((VOID **)&Hob.Raw);
+ PeiServicesGetHobList ((VOID **)&Hob.Raw);
while (!END_OF_HOB_LIST (Hob)) {
if (Hob.Header->HobType == EFI_HOB_TYPE_GUID_EXTENSION &&
CompareGuid (&Hob.Guid->Name, &gEfiMemoryTypeInformationGuid)
@@ -1171,7 +1170,6 @@ GetMemoryMap ( PEI_MEMORY_RANGE_SMRAM SmramMask;
PEI_MEMORY_RANGE_SMRAM TsegMask;
UINT32 BlockNum;
- UINT8 EsmramcRegister;
UINT8 ExtendedMemoryIndex;
UINT32 Register;
@@ -1194,7 +1192,6 @@ GetMemoryMap ( //
// Generate Memory ranges for the memory map.
//
- EsmramcRegister = 0;
MemorySize = 0;
RowLength = TotalMemorySize;
|