mirror of https://github.com/acidanthera/audk.git
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
This commit is contained in:
parent
1eb904a612
commit
4ba30eded8
|
@ -1255,7 +1255,6 @@ IsDeleteAuthVariable (
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
BOOLEAN Del;
|
BOOLEAN Del;
|
||||||
UINT8 *Payload;
|
|
||||||
UINTN PayloadSize;
|
UINTN PayloadSize;
|
||||||
|
|
||||||
Del = FALSE;
|
Del = FALSE;
|
||||||
|
@ -1270,13 +1269,11 @@ IsDeleteAuthVariable (
|
||||||
(Attributes == Variable->CurrPtr->Attributes) &&
|
(Attributes == Variable->CurrPtr->Attributes) &&
|
||||||
((Attributes & (EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS | EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS)) != 0)) {
|
((Attributes & (EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS | EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS)) != 0)) {
|
||||||
if ((Attributes & 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);
|
PayloadSize = DataSize - AUTHINFO2_SIZE (Data);
|
||||||
if (PayloadSize == 0) {
|
if (PayloadSize == 0) {
|
||||||
Del = TRUE;
|
Del = TRUE;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Payload = (UINT8 *) Data + AUTHINFO_SIZE;
|
|
||||||
PayloadSize = DataSize - AUTHINFO_SIZE;
|
PayloadSize = DataSize - AUTHINFO_SIZE;
|
||||||
if (PayloadSize == 0) {
|
if (PayloadSize == 0) {
|
||||||
Del = TRUE;
|
Del = TRUE;
|
||||||
|
@ -2179,7 +2176,6 @@ VerifyTimeBasedPayload (
|
||||||
UINT8 *Buffer;
|
UINT8 *Buffer;
|
||||||
UINTN Length;
|
UINTN Length;
|
||||||
UINT8 *SignerCerts;
|
UINT8 *SignerCerts;
|
||||||
UINT8 *WrapSigData;
|
|
||||||
UINTN CertStackSize;
|
UINTN CertStackSize;
|
||||||
UINT8 *CertsInCertDb;
|
UINT8 *CertsInCertDb;
|
||||||
UINT32 CertsSizeinDb;
|
UINT32 CertsSizeinDb;
|
||||||
|
@ -2188,7 +2184,6 @@ VerifyTimeBasedPayload (
|
||||||
CertData = NULL;
|
CertData = NULL;
|
||||||
NewData = NULL;
|
NewData = NULL;
|
||||||
Attr = Attributes;
|
Attr = Attributes;
|
||||||
WrapSigData = NULL;
|
|
||||||
SignerCerts = NULL;
|
SignerCerts = NULL;
|
||||||
RootCert = NULL;
|
RootCert = NULL;
|
||||||
CertsInCertDb = NULL;
|
CertsInCertDb = NULL;
|
||||||
|
|
|
@ -652,7 +652,6 @@ FindFileSystem (
|
||||||
{
|
{
|
||||||
UINTN NoBlkIoHandles;
|
UINTN NoBlkIoHandles;
|
||||||
UINTN NoSimpleFsHandles;
|
UINTN NoSimpleFsHandles;
|
||||||
UINTN NoLoadFileHandles;
|
|
||||||
EFI_HANDLE *BlkIoHandle;
|
EFI_HANDLE *BlkIoHandle;
|
||||||
EFI_HANDLE *SimpleFsHandle;
|
EFI_HANDLE *SimpleFsHandle;
|
||||||
UINT16 *VolumeLabel;
|
UINT16 *VolumeLabel;
|
||||||
|
@ -669,7 +668,6 @@ FindFileSystem (
|
||||||
|
|
||||||
|
|
||||||
NoSimpleFsHandles = 0;
|
NoSimpleFsHandles = 0;
|
||||||
NoLoadFileHandles = 0;
|
|
||||||
OptionNumber = 0;
|
OptionNumber = 0;
|
||||||
InitializeListHead (&FsOptionMenu.Head);
|
InitializeListHead (&FsOptionMenu.Head);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue