summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Kitching <kitching@google.com>2019-06-16 16:59:26 +0800
committerJulius Werner <jwerner@chromium.org>2019-06-21 00:50:59 +0000
commitb6bcb6cc8f8b217254ccdb81ef8b2d852047d5b8 (patch)
treeaa8faba2eb5c2780880ecb86149173232123d8ae
parenta06cd6c29e5f2fb05210eb185b84c887791df989 (diff)
vboot: remove functions which read vboot_handoff.out_flags
These functions are no longer used and may be removed: * vboot_handoff_check_recovery_flag * vboot_get_handoff_flag BUG=b:124141368, b:124192753 TEST=make clean && make test-abuild BRANCH=none Change-Id: Ie05652ef1288eef74bd2e7e8bea79fd29d523859 Signed-off-by: Joel Kitching <kitching@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/33533 Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Furquan Shaikh <furquan@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--src/security/vboot/vboot_common.c18
-rw-r--r--src/security/vboot/vboot_common.h9
2 files changed, 0 insertions, 27 deletions
diff --git a/src/security/vboot/vboot_common.c b/src/security/vboot/vboot_common.c
index a18bf23f92..8456dcfc22 100644
--- a/src/security/vboot/vboot_common.c
+++ b/src/security/vboot/vboot_common.c
@@ -75,24 +75,6 @@ int vboot_get_handoff_info(void **addr, uint32_t *size)
return 0;
}
-static int vboot_get_handoff_flag(uint32_t flag)
-{
- struct vboot_handoff *vbho;
-
- /*
- * If vboot_handoff cannot be found, return default value of flag as 0.
- */
- if (vboot_get_handoff_info((void **)&vbho, NULL))
- return 0;
-
- return !!(vbho->out_flags & flag);
-}
-
-int vboot_handoff_check_recovery_flag(void)
-{
- return vboot_get_handoff_flag(VB_INIT_OUT_ENABLE_RECOVERY);
-}
-
/* ============================ VBOOT REBOOT ============================== */
void __weak vboot_platform_prepare_reboot(void)
{
diff --git a/src/security/vboot/vboot_common.h b/src/security/vboot/vboot_common.h
index 65a543c791..241dc90e95 100644
--- a/src/security/vboot/vboot_common.h
+++ b/src/security/vboot/vboot_common.h
@@ -53,15 +53,6 @@ struct vboot_handoff {
*/
int vboot_get_handoff_info(void **addr, uint32_t *size);
-/*
- * The following function reads vboot_handoff structure to obtain requested
- * information. If vboot handoff is not available, 0 is returned by default.
- * If vboot handoff is available:
- * Returns 1 for flag if true
- * Returns 0 for flag if false
- */
-int vboot_handoff_check_recovery_flag(void);
-
/* ============================ VBOOT REBOOT ============================== */
/*
* vboot_reboot handles the reboot requests made by vboot_reference library. It