Revision: 17354
          http://sourceforge.net/p/edk2/code/17354
Author:   oliviermartin
Date:     2015-05-07 15:16:23 +0000 (Thu, 07 May 2015)
Log Message:
-----------
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 <[email protected]>
Reviewed-by: Olivier Martin <[email protected]>
Signed-off-by: Ard Biesheuvel <[email protected]>

Modified Paths:
--------------
    trunk/edk2/SecurityPkg/VariableAuthenticated/RuntimeDxe/AuthService.c
    
trunk/edk2/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigFileExplorer.c

Modified: trunk/edk2/SecurityPkg/VariableAuthenticated/RuntimeDxe/AuthService.c
===================================================================
--- trunk/edk2/SecurityPkg/VariableAuthenticated/RuntimeDxe/AuthService.c       
2015-05-07 10:02:27 UTC (rev 17353)
+++ trunk/edk2/SecurityPkg/VariableAuthenticated/RuntimeDxe/AuthService.c       
2015-05-07 15:16:23 UTC (rev 17354)
@@ -1255,7 +1255,6 @@
   )
 {
   BOOLEAN                       Del;
-  UINT8                         *Payload;
   UINTN                         PayloadSize;
 
   Del = FALSE;
@@ -1270,13 +1269,11 @@
       (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 @@
   UINT8                            *Buffer;
   UINTN                            Length;
   UINT8                            *SignerCerts;
-  UINT8                            *WrapSigData;
   UINTN                            CertStackSize;
   UINT8                            *CertsInCertDb;
   UINT32                           CertsSizeinDb;
@@ -2188,7 +2184,6 @@
   CertData               = NULL;
   NewData                = NULL;
   Attr                   = Attributes;
-  WrapSigData            = NULL;
   SignerCerts            = NULL;
   RootCert               = NULL;
   CertsInCertDb          = NULL;

Modified: 
trunk/edk2/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigFileExplorer.c
===================================================================
--- 
trunk/edk2/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigFileExplorer.c
     2015-05-07 10:02:27 UTC (rev 17353)
+++ 
trunk/edk2/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigFileExplorer.c
     2015-05-07 15:16:23 UTC (rev 17354)
@@ -652,7 +652,6 @@
 {
   UINTN                     NoBlkIoHandles;
   UINTN                     NoSimpleFsHandles;
-  UINTN                     NoLoadFileHandles;
   EFI_HANDLE                *BlkIoHandle;
   EFI_HANDLE                *SimpleFsHandle;
   UINT16                    *VolumeLabel;
@@ -669,7 +668,6 @@
 
 
   NoSimpleFsHandles = 0;
-  NoLoadFileHandles = 0;
   OptionNumber      = 0;
   InitializeListHead (&FsOptionMenu.Head);
 


------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to