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:
parent
e4dcdcd158
commit
c7413ee859
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user