summaryrefslogtreecommitdiff
path: root/host
diff options
context:
space:
mode:
authorManoj Gupta <manojgupta@google.com>2019-11-04 17:17:39 -0800
committerCommit Bot <commit-bot@chromium.org>2020-02-01 03:54:08 +0000
commit6208b9aa9c4e8b7c9ff8063965c9f9aa519c1740 (patch)
tree66f3e866b0348c5d5940a9a97fd4159a24b44855 /host
parent0e97e25e85f0499e23b09a31a2c7116759f191d5 (diff)
downloadvboot-6208b9aa9c4e8b7c9ff8063965c9f9aa519c1740.tar.gz
Reland: Clean up implicit fall through.
Directly use the __attribute__ ((fallthrough)) instead of a macro. This was suggested in CL:1772474. BUG=chromium:997709 TEST=CQ BRANCH=None Change-Id: Ifcdcd3822eddea41aeb88f4a55bd09aa483f6054 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/2031766 Tested-by: Manoj Gupta <manojgupta@chromium.org> Reviewed-by: Julius Werner <jwerner@chromium.org> Commit-Queue: Manoj Gupta <manojgupta@chromium.org>
Diffstat (limited to 'host')
-rw-r--r--host/lib/crossystem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/crossystem.c b/host/lib/crossystem.c
index 94baf667..3c429bba 100644
--- a/host/lib/crossystem.c
+++ b/host/lib/crossystem.c
@@ -413,7 +413,7 @@ static int GetVdatInt(VdatIntField field)
break;
case VDAT_INT_FW_BOOT2:
value = (sh->flags & VBSD_BOOT_FIRMWARE_VBOOT2 ? 1 : 0);
- VBOOT_FALLTHROUGH;
+ __attribute__ ((fallthrough));
default:
break;
}