]> git.proxmox.com Git - mirror_edk2.git/commitdiff
SecurityPkg: remove unused variables
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 7 May 2015 15:16:23 +0000 (15:16 +0000)
committeroliviermartin <oliviermartin@Edk2>
Thu, 7 May 2015 15:16:23 +0000 (15:16 +0000)
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

SecurityPkg/VariableAuthenticated/RuntimeDxe/AuthService.c
SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigFileExplorer.c

index 1e9e1907c00426fe02ed358571e49ac2bcc36f18..b48129135fd3f8c1cdfcc539a10208035a611f3c 100644 (file)
@@ -1255,7 +1255,6 @@ IsDeleteAuthVariable (
   )\r
 {\r
   BOOLEAN                       Del;\r
-  UINT8                         *Payload;\r
   UINTN                         PayloadSize;\r
 \r
   Del = FALSE;\r
@@ -1270,13 +1269,11 @@ IsDeleteAuthVariable (
       (Attributes == Variable->CurrPtr->Attributes) &&\r
       ((Attributes & (EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS | EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS)) != 0)) {\r
     if ((Attributes & EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS) != 0) {\r
-      Payload = (UINT8 *) Data + AUTHINFO2_SIZE (Data);\r
       PayloadSize = DataSize - AUTHINFO2_SIZE (Data);\r
       if (PayloadSize == 0) {\r
         Del = TRUE;\r
       }\r
     } else {\r
-      Payload = (UINT8 *) Data + AUTHINFO_SIZE;\r
       PayloadSize = DataSize - AUTHINFO_SIZE;\r
       if (PayloadSize == 0) {\r
         Del = TRUE;\r
@@ -2179,7 +2176,6 @@ VerifyTimeBasedPayload (
   UINT8                            *Buffer;\r
   UINTN                            Length;\r
   UINT8                            *SignerCerts;\r
-  UINT8                            *WrapSigData;\r
   UINTN                            CertStackSize;\r
   UINT8                            *CertsInCertDb;\r
   UINT32                           CertsSizeinDb;\r
@@ -2188,7 +2184,6 @@ VerifyTimeBasedPayload (
   CertData               = NULL;\r
   NewData                = NULL;\r
   Attr                   = Attributes;\r
-  WrapSigData            = NULL;\r
   SignerCerts            = NULL;\r
   RootCert               = NULL;\r
   CertsInCertDb          = NULL;\r
index b731865ed774058945756582b86f856708d4e791..5ca013c92df21f91a0e635a1549349c632c5a766 100644 (file)
@@ -652,7 +652,6 @@ FindFileSystem (
 {\r
   UINTN                     NoBlkIoHandles;\r
   UINTN                     NoSimpleFsHandles;\r
-  UINTN                     NoLoadFileHandles;\r
   EFI_HANDLE                *BlkIoHandle;\r
   EFI_HANDLE                *SimpleFsHandle;\r
   UINT16                    *VolumeLabel;\r
@@ -669,7 +668,6 @@ FindFileSystem (
 \r
 \r
   NoSimpleFsHandles = 0;\r
-  NoLoadFileHandles = 0;\r
   OptionNumber      = 0;\r
   InitializeListHead (&FsOptionMenu.Head);\r
 \r