From 9aa0f212aeefb0ca9a554207e349c273ee7279c8 Mon Sep 17 00:00:00 2001 From: Jennifer Williams Date: Wed, 10 Mar 2021 05:05:56 +0200 Subject: [PATCH] kernel: work: fix missing final else work_queue_main() was missing final else statement in the if else if construct. This commit adds else {} to comply with coding guideline 15.7. Includes a context-specific description of why this branch is empty. Signed-off-by: Jennifer Williams --- kernel/work.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kernel/work.c b/kernel/work.c index cc94560c291..d2414f8b418 100644 --- a/kernel/work.c +++ b/kernel/work.c @@ -649,6 +649,11 @@ static void work_queue_main(void *workq_ptr, void *p2, void *p3) * submissions. */ (void)z_sched_wake_all(&queue->drainq, 1, NULL); + } else { + /* No work is available and no queue state requires + * special handling. + */ + ; } if (work == NULL) {