[PATCH 2/5] score: Simplify _Per_CPU_Wait_for_job()

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Aug 16 11:15:28 UTC 2021


The _SMP_Fatal() is a no-return function, so the "break" statement is
superfluous.
---
 cpukit/score/src/percpujobs.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/cpukit/score/src/percpujobs.c b/cpukit/score/src/percpujobs.c
index f273f7d17d..3de3e4a7bd 100644
--- a/cpukit/score/src/percpujobs.c
+++ b/cpukit/score/src/percpujobs.c
@@ -127,7 +127,6 @@ void _Per_CPU_Wait_for_job(
         break;
       default:
         _SMP_Fatal( SMP_FATAL_WRONG_CPU_STATE_TO_PERFORM_JOBS );
-        break;
     }
   }
 }
-- 
2.26.2



More information about the devel mailing list