[rtems commit] score: Simplify _Per_CPU_Wait_for_job()
Sebastian Huber
sebh at rtems.org
Wed Aug 18 11:37:08 UTC 2021
Module: rtems
Branch: master
Commit: 2f45324bb82d5cbf3b0aa8f40a88e40132467cce
Changeset: http://git.rtems.org/rtems/commit/?id=2f45324bb82d5cbf3b0aa8f40a88e40132467cce
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Sat Aug 7 22:19:44 2021 +0200
score: Simplify _Per_CPU_Wait_for_job()
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 f273f7d..3de3e4a 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;
}
}
}
More information about the vc
mailing list