flash/nor/stm32f1x: remove write alignment code
[fw/openocd] / src / helper / time_support.c
index 05eaf0a9d08e4cfae9a1dddf28c12d906813a2fb..861889ec695fb54228166db3c01d7b0423c4ea75 100644 (file)
@@ -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;
 }