projects
/
fw
/
openocd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
flash/nor: add support for Nuvoton NPCX series flash
[fw/openocd]
/
src
/
helper
/
time_support.c
diff --git
a/src/helper/time_support.c
b/src/helper/time_support.c
index 05eaf0a9d08e4cfae9a1dddf28c12d906813a2fb..861889ec695fb54228166db3c01d7b0423c4ea75 100644
(file)
--- a/
src/helper/time_support.c
+++ b/
src/helper/time_support.c
@@
-86,7
+86,7
@@
int duration_measure(struct duration *duration)
{
struct timeval end;
int retval = gettimeofday(&end, NULL);
- if (
0 == retval
)
+ if (
retval == 0
)
timeval_subtract(&duration->elapsed, &end, &duration->start);
return retval;
}