diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2015-05-07 15:16:23 +0000 |
---|---|---|
committer | oliviermartin <oliviermartin@Edk2> | 2015-05-07 15:16:23 +0000 |
commit | 4ba30eded8ea228641eedcd9f1cbba828d059b7c (patch) | |
tree | 23d4f4e0e4ba02acde4f971aef3d486294b442b9 /SecurityPkg/VariableAuthenticated | |
parent | 1eb904a6127cf39d3937be7c4ddbdfeead09aff1 (diff) | |
download | edk2-4ba30eded8ea228641eedcd9f1cbba828d059b7c.tar.gz edk2-4ba30eded8ea228641eedcd9f1cbba828d059b7c.tar.bz2 edk2-4ba30eded8ea228641eedcd9f1cbba828d059b7c.zip |
SecurityPkg: remove unused variables
This removes various unused variables from SecurityPkg whose presence
is causing failed builds.
Contributed-under: TianoCore Contribution Agreement 1.0
Reviewed-by: Chao Zhang <chao.b.zhang@intel.com>
Reviewed-by: Olivier Martin <olivier.martin@arm.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17354 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'SecurityPkg/VariableAuthenticated')
-rw-r--r-- | SecurityPkg/VariableAuthenticated/RuntimeDxe/AuthService.c | 5 | ||||
-rw-r--r-- | SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigFileExplorer.c | 2 |
2 files changed, 0 insertions, 7 deletions
diff --git a/SecurityPkg/VariableAuthenticated/RuntimeDxe/AuthService.c b/SecurityPkg/VariableAuthenticated/RuntimeDxe/AuthService.c index 1e9e1907c0..b48129135f 100644 --- a/SecurityPkg/VariableAuthenticated/RuntimeDxe/AuthService.c +++ b/SecurityPkg/VariableAuthenticated/RuntimeDxe/AuthService.c @@ -1255,7 +1255,6 @@ IsDeleteAuthVariable ( )
{
BOOLEAN Del;
- UINT8 *Payload;
UINTN PayloadSize;
Del = FALSE;
@@ -1270,13 +1269,11 @@ IsDeleteAuthVariable ( (Attributes == Variable->CurrPtr->Attributes) &&
((Attributes & (EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS | EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS)) != 0)) {
if ((Attributes & EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS) != 0) {
- Payload = (UINT8 *) Data + AUTHINFO2_SIZE (Data);
PayloadSize = DataSize - AUTHINFO2_SIZE (Data);
if (PayloadSize == 0) {
Del = TRUE;
}
} else {
- Payload = (UINT8 *) Data + AUTHINFO_SIZE;
PayloadSize = DataSize - AUTHINFO_SIZE;
if (PayloadSize == 0) {
Del = TRUE;
@@ -2179,7 +2176,6 @@ VerifyTimeBasedPayload ( UINT8 *Buffer;
UINTN Length;
UINT8 *SignerCerts;
- UINT8 *WrapSigData;
UINTN CertStackSize;
UINT8 *CertsInCertDb;
UINT32 CertsSizeinDb;
@@ -2188,7 +2184,6 @@ VerifyTimeBasedPayload ( CertData = NULL;
NewData = NULL;
Attr = Attributes;
- WrapSigData = NULL;
SignerCerts = NULL;
RootCert = NULL;
CertsInCertDb = NULL;
diff --git a/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigFileExplorer.c b/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigFileExplorer.c index b731865ed7..5ca013c92d 100644 --- a/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigFileExplorer.c +++ b/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigFileExplorer.c @@ -652,7 +652,6 @@ FindFileSystem ( {
UINTN NoBlkIoHandles;
UINTN NoSimpleFsHandles;
- UINTN NoLoadFileHandles;
EFI_HANDLE *BlkIoHandle;
EFI_HANDLE *SimpleFsHandle;
UINT16 *VolumeLabel;
@@ -669,7 +668,6 @@ FindFileSystem ( NoSimpleFsHandles = 0;
- NoLoadFileHandles = 0;
OptionNumber = 0;
InitializeListHead (&FsOptionMenu.Head);
|