pkarashchenko commented on a change in pull request #5432:
URL: https://github.com/apache/incubator-nuttx/pull/5432#discussion_r800978992
##########
File path: sched/wdog/wd_start.c
##########
@@ -204,15 +214,31 @@ int wd_start(FAR struct wdog_s *wdog, sclock_t delay,
up_getpicbase(&wdog->picbase);
wdog->arg = arg;
- /* Calculate delay+1, forcing the delay into a range that we can handle */
+ /* Delay for at least one tick should be performed */
- if (delay <= 0)
+ if (delay == 0)
Review comment:
The negative case is check few lines above and the error code is
returned, so no need to handle negative values here
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]