summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc
diff options
context:
space:
mode:
authorRyan Long <ryan.long@oarcorp.com>2021-03-01 16:06:41 -0500
committerJoel Sherrill <joel@rtems.org>2021-03-05 14:00:05 -0600
commitc7eb89f82b4c0572917cc7bc31dfecb08a6685ee (patch)
tree7376dbde9a011c0603223151cca42cf0b0f3dcfe /cpukit/libmisc
parentgrtc.c: Fix four Missing break in switch Coverity errors (diff)
downloadrtems-c7eb89f82b4c0572917cc7bc31dfecb08a6685ee.tar.bz2
cpuusagetop.c: Fix three Missing break in switch Coverity errors
CID 1399726: Missing break in switch in task_usage(). CID 1399728: Missing break in switch in task_usage(). CID 1399742: Missing break in switch in task_usage(). Closes #4278
Diffstat (limited to 'cpukit/libmisc')
-rw-r--r--cpukit/libmisc/cpuuse/cpuusagetop.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpukit/libmisc/cpuuse/cpuusagetop.c b/cpukit/libmisc/cpuuse/cpuusagetop.c
index 9f19b27439..dad11ad748 100644
--- a/cpukit/libmisc/cpuuse/cpuusagetop.c
+++ b/cpukit/libmisc/cpuuse/cpuusagetop.c
@@ -228,9 +228,11 @@ task_usage(Thread_Control* thread, void* arg)
if (CPU_usage_Equal_to(&usage, &data->zero) ||
CPU_usage_Less_than(&usage, &data->usage[j]))
continue;
+ /* Fall through */
case RTEMS_TOP_SORT_REAL_PRI:
if (thread->Real_priority.priority > data->tasks[j]->Real_priority.priority)
continue;
+ /* Fall through */
case RTEMS_TOP_SORT_CURRENT_PRI:
if (
_Thread_Get_priority( thread )
@@ -238,6 +240,7 @@ task_usage(Thread_Control* thread, void* arg)
) {
continue;
}
+ /* Fall through */
case RTEMS_TOP_SORT_ID:
if (thread->Object.id < data->tasks[j]->Object.id)
continue;