You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/04/19 09:55:10 UTC
[GitHub] [incubator-nuttx-apps] pkarashchenko commented on a diff in pull request #1145: system/critmon: Fix dead code
pkarashchenko commented on code in PR #1145:
URL: https://github.com/apache/incubator-nuttx-apps/pull/1145#discussion_r852839360
##########
system/critmon/critmon.c:
##########
@@ -423,12 +423,7 @@ static int critmon_list_once(void)
fprintf(stderr, "Csection Monitor: Failed to open directory: %s\n",
CONFIG_SYSTEM_CRITMONITOR_MOUNTPOINT);
-
- if (++errcount > 100)
Review Comment:
`int errcount = 0;` is a stack variable and loop with incrementing is present till this place. So condition is never hit
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org