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>
pull/15/head
Stephane Grosjean 2016-11-16 11:46:19 +01:00 committed by Marc Kleine-Budde
parent 73ae306a11
commit 4d0e6d5169
1 changed files with 1 additions and 1 deletions

View File

@ -239,7 +239,7 @@ static int can_echo_dut(void)
} }
gettimeofday(&tvn, NULL); gettimeofday(&tvn, NULL);
while ((tv_stop.tv_sec > tvn.tv_sec) || 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))) (tv_stop.tv_usec >= tvn.tv_usec)))
gettimeofday(&tvn, NULL); gettimeofday(&tvn, NULL);
} }