canfdtest: fix typo while waiting for tv_stop time

After a few complaint about 100% CPU usage of canfdtest over our PCI
-like boards, I have had a look to the source file, and think I have
found the issue in can_echo_dut().

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:
Stephane Grosjean
2016-11-21 11:37:01 +01:00
committed by Marc Kleine-Budde
parent 73ae306a11
commit 4d0e6d5169
+1 -1
View File
@@ -239,7 +239,7 @@ static int can_echo_dut(void)
}
gettimeofday(&tvn, NULL);
while ((tv_stop.tv_sec > tvn.tv_sec) ||
((tv_stop.tv_sec = tvn.tv_sec) &&
((tv_stop.tv_sec == tvn.tv_sec) &&
(tv_stop.tv_usec >= tvn.tv_usec)))
gettimeofday(&tvn, NULL);
}