summaryrefslogtreecommitdiff
path: root/tests/vb2_ui_tests.c
diff options
context:
space:
mode:
authoredisonhello <edisonhello@google.com>2021-08-02 14:28:50 +0800
committerCommit Bot <commit-bot@chromium.org>2021-08-12 08:13:14 +0000
commit51879dc24aea94851fc28ffc2f68cba1b58f3db8 (patch)
tree832355c3b26b424b9300c92a9fb2a6b93f28e4c6 /tests/vb2_ui_tests.c
parentd8de9942e2fdfdf3f1792740cb5419163faff3ea (diff)
downloadvboot-stabilize-14150.376.B.tar.gz
Since all flags are initialized as 0 in vb2api_init(), some flag unset operations are not needed. Edit few comments to make it more accurate. BUG=none TEST=export CC=x86_64-pc-linux-gnu-clang DEBUG=1; \ make -j32 test_setup && make -j32 runtests; BRANCH=none Signed-off-by: edisonhello <edisonhello@google.com> Change-Id: I0129f43342598195800ff671b965100d3d568564 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/3066803 Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Yu-Ping Wu <yupingso@chromium.org>
Diffstat (limited to 'tests/vb2_ui_tests.c')
-rw-r--r--tests/vb2_ui_tests.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/vb2_ui_tests.c b/tests/vb2_ui_tests.c
index 95d22900..54f76037 100644
--- a/tests/vb2_ui_tests.c
+++ b/tests/vb2_ui_tests.c
@@ -279,7 +279,6 @@ static void reset_common_data(enum reset_type t)
}
ctx->flags |= VB2_CONTEXT_DEV_BOOT_ALLOWED;
- ctx->flags &= ~(uint64_t)VB2_CONTEXT_DEV_BOOT_ALTFW_ALLOWED;
ctx->flags |= VB2_CONTEXT_DEV_BOOT_EXTERNAL_ALLOWED;
/* Mock ui_context based on real screens */