summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2022-06-27 14:43:44 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-06-29 01:20:02 +0000
commitea1f2efc581ca2bcac9a5bd0a88e93219e131abe (patch)
tree2d8041108ced7b185718e8a2f9f4336246f97a53
parent9b5482844be0b3df075609a1c1ee05e9b25d702e (diff)
downloadchrome-ec-ea1f2efc581ca2bcac9a5bd0a88e93219e131abe.tar.gz
core/host/timer.c: Format with clang-format
BUG=b:236386294 BRANCH=none TEST=none Change-Id: Id888c0d9be8a929411ab24717028fbfc701a709f Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3729845 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
-rw-r--r--core/host/timer.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/core/host/timer.c b/core/host/timer.c
index 3c3695cad4..67271c5112 100644
--- a/core/host/timer.c
+++ b/core/host/timer.c
@@ -90,15 +90,12 @@ int timestamp_expired(timestamp_t deadline, const timestamp_t *now)
void timer_init(void)
{
-
if (!time_set) {
/*
* Start the timer just before the 64-bit rollover to try
* and catch 32-bit rollover/truncation bugs.
*/
- timestamp_t ts = {
- .val = 0xFFFFFFF0
- };
+ timestamp_t ts = { .val = 0xFFFFFFF0 };
force_time(ts);
}