From 126e23d27c1d7b363f4768b652631e318e57d61b Mon Sep 17 00:00:00 2001 From: Jacob Hageman Date: Mon, 17 Jul 2023 14:54:12 +0000 Subject: [PATCH] Fix #1991, TriggerMode unsigned compare with 0 --- modules/es/fsw/src/cfe_es_perf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/es/fsw/src/cfe_es_perf.c b/modules/es/fsw/src/cfe_es_perf.c index c6a86ad76..62233a6fa 100644 --- a/modules/es/fsw/src/cfe_es_perf.c +++ b/modules/es/fsw/src/cfe_es_perf.c @@ -155,8 +155,7 @@ int32 CFE_ES_StartPerfDataCmd(const CFE_ES_StartPerfDataCmd_t *data) PerfDumpState->PendingState == CFE_ES_PerfDumpState_IDLE) { /* Make sure Trigger Mode is valid */ - /* cppcheck-suppress unsignedPositive */ - if ((CmdPtr->TriggerMode >= CFE_ES_PERF_TRIGGER_START) && (CmdPtr->TriggerMode < CFE_ES_PERF_MAX_MODES)) + if (CmdPtr->TriggerMode < CFE_ES_PERF_MAX_MODES) { CFE_ES_Global.TaskData.CommandCounter++;