summaryrefslogtreecommitdiff
path: root/firmware/lib/vboot_api_kernel.c
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2018-03-01 12:31:44 -0800
committerchrome-bot <chrome-bot@chromium.org>2018-03-01 19:13:13 -0800
commit68ca41067083ee78f5e6b96ba0e2ce9a76cecd3b (patch)
tree91dabd15efc81e3f95d9a0150a8be9d91272c97d /firmware/lib/vboot_api_kernel.c
parentf35b63590adb5df9ca881d09d58735093962168d (diff)
downloadvboot-stabilize-10452.81.B.tar.gz
VbLockDevice() would be inconvenient to port to 64-byte NV storage records because it doesn't take VbSharedData flags or a vb2_context. So, just have depthcharge call vbnv_write() directly (as it does in other places in fastboot.c) and get rid of this API. BUG=chromium:789276 BRANCH=none TEST=make runtests CQ-DEPEND=CL:944183 Change-Id: I2aeaecf7f929cd1a1ebd1f6850d0dd96c6fabb49 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/944243 Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Diffstat (limited to 'firmware/lib/vboot_api_kernel.c')
-rw-r--r--firmware/lib/vboot_api_kernel.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/firmware/lib/vboot_api_kernel.c b/firmware/lib/vboot_api_kernel.c
index 02d09ad1..d4475fbb 100644
--- a/firmware/lib/vboot_api_kernel.c
+++ b/firmware/lib/vboot_api_kernel.c
@@ -621,18 +621,3 @@ VbError_t VbUnlockDevice(void)
VB2_DEBUG("Mode change will take effect on next reboot.\n");
return VBERROR_SUCCESS;
}
-
-VbError_t VbLockDevice(void)
-{
- VB2_DEBUG("Storing request to leave dev-mode.\n");
-
- memset(&ctx, 0, sizeof(ctx));
- VbExNvStorageRead(ctx.nvdata);
- vb2_nv_init(&ctx);
- vb2_nv_set(&ctx, VB2_NV_DISABLE_DEV_REQUEST, 1);
- vb2_nv_commit(&ctx);
-
- VB2_DEBUG("Mode change will take effect on next reboot.\n");
-
- return VBERROR_SUCCESS;
-}