diff options
author | Yu-Ping Wu <yupingso@chromium.org> | 2020-03-03 09:42:31 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-03-31 07:15:06 +0000 |
commit | e3f71c97d05f5c659a0c2a2186dc62dd0586407f (patch) | |
tree | dd1658ebb32f324996e05e1c2751266a7b139c50 /firmware/lib/tpm2_lite/tlcl.c | |
parent | bf8c99df0ce9e086e9a48dd89e81d0dd5aa6f1a9 (diff) | |
download | vboot-e3f71c97d05f5c659a0c2a2186dc62dd0586407f.tar.gz |
firmware: Add VB2_TRY() helper macro
Add variadic macro VB2_TRY() to vboot2 APIs, which supports the
following usage:
- VB2_TRY(func_call())
- VB2_TRY(func_call(), ctx, recovery_reason)
and will return the error code if func_call() failed.
Also utilize the macro whenever possible throughout vboot.
BRANCH=none
BUG=chromium:1049032
TEST=make runtests
TEST=emerge-nami coreboot coreboot-utils depthcharge -j
Cq-Depend: chromium:2115423, chromium:2125616, chrome-internal:2817320
Change-Id: Ie5532a8beaa9372fa6fde0a68bda5ecb640087c4
Signed-off-by: Yu-Ping Wu <yupingso@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/2084062
Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'firmware/lib/tpm2_lite/tlcl.c')
0 files changed, 0 insertions, 0 deletions