system/critmon: Fix dead code

Remove branch since errcount could never bigger than 100.

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
Huang Qi 2022-04-19 17:03:00 +08:00 committed by Xiang Xiao
parent e4dcdcd158
commit c7413ee859

View File

@ -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)
{
fprintf(stderr, "Csection Monitor: Too many errors ... exiting\n");
return EXIT_FAILURE;
}
return EXIT_FAILURE;
}
/* Read each directory entry */