diff options
author | Rebecca Cran <rebecca@bsdio.com> | 2024-12-02 08:17:13 -0700 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-12-04 11:05:10 +0000 |
commit | 194cdc1700c195e1951c5623990ed9cf227f2df2 (patch) | |
tree | e63e17848b6826b69d852e9ed8d1bd7d4939e7e7 /SecurityPkg | |
parent | dfab971e9183bc53f503da6fb9631644e9a72604 (diff) | |
download | edk2-194cdc1700c195e1951c5623990ed9cf227f2df2.tar.gz |
SecurityPkg: remove unused `EfiSig` variable in SecureBootFetchData
The `EfiSig` variable in SecureBootFetchData is unused, so remove it.
Signed-off-by: Rebecca Cran <rebecca@bsdio.com>
Diffstat (limited to 'SecurityPkg')
-rw-r--r-- | SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.c b/SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.c index 0c28eaa0b6..7f9fdd22d7 100644 --- a/SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.c +++ b/SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.c @@ -46,7 +46,6 @@ SecureBootFetchData ( OUT EFI_SIGNATURE_LIST **SigListOut
)
{
- EFI_SIGNATURE_LIST *EfiSig;
EFI_STATUS Status;
VOID *Buffer;
VOID *RsaPubKey;
@@ -57,7 +56,6 @@ SecureBootFetchData ( SECURE_BOOT_CERTIFICATE_INFO *NewCertInfo;
KeyIndex = 0;
- EfiSig = NULL;
*SigListOut = NULL;
*SigListsSize = 0;
CertInfo = AllocatePool (sizeof (SECURE_BOOT_CERTIFICATE_INFO));
@@ -82,10 +80,6 @@ SecureBootFetchData ( RsaPubKey = NULL;
if (RsaGetPublicKeyFromX509 (Buffer, Size, &RsaPubKey) == FALSE) {
DEBUG ((DEBUG_ERROR, "%a: Invalid key format: %d\n", __func__, KeyIndex));
- if (EfiSig != NULL) {
- FreePool (EfiSig);
- }
-
FreePool (Buffer);
Status = EFI_INVALID_PARAMETER;
break;
|