summaryrefslogtreecommitdiff
path: root/firmware/lib/vboot_api_kernel.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/lib/vboot_api_kernel.c')
-rw-r--r--firmware/lib/vboot_api_kernel.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/firmware/lib/vboot_api_kernel.c b/firmware/lib/vboot_api_kernel.c
index fd0556b5..897f7884 100644
--- a/firmware/lib/vboot_api_kernel.c
+++ b/firmware/lib/vboot_api_kernel.c
@@ -242,10 +242,6 @@ void VbApiKernelFree(VbCommonParams *cparams)
free(cparams->gbb);
cparams->gbb = NULL;
}
- if (cparams->bmp) {
- free(cparams->bmp);
- cparams->bmp = NULL;
- }
}
static VbError_t vb2_kernel_setup(VbCommonParams *cparams,
@@ -324,7 +320,6 @@ static VbError_t vb2_kernel_setup(VbCommonParams *cparams,
memset(kparams->partition_guid, 0, sizeof(kparams->partition_guid));
/* Read GBB header, since we'll needs flags from it */
- cparams->bmp = NULL;
cparams->gbb = malloc(sizeof(*cparams->gbb));
uint32_t retval = VbGbbReadHeader_static(cparams, cparams->gbb);
if (retval)