summaryrefslogtreecommitdiff
path: root/chip/mec1322
diff options
context:
space:
mode:
Diffstat (limited to 'chip/mec1322')
-rw-r--r--chip/mec1322/lfw/ec_lfw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/mec1322/lfw/ec_lfw.c b/chip/mec1322/lfw/ec_lfw.c
index b99d33d011..86a4949e17 100644
--- a/chip/mec1322/lfw/ec_lfw.c
+++ b/chip/mec1322/lfw/ec_lfw.c
@@ -126,7 +126,7 @@ int timestamp_expired(timestamp_t deadline, const timestamp_t *now)
now = &now_val;
}
- return ((uint32_t)(now->le.lo - deadline.le.lo) >= 0);
+ return now->le.lo >= deadline.le.lo;
}