[PATCH] score: Clarify code block
Sebastian Huber
sebastian.huber at embedded-brains.de
Mon Jan 23 13:18:08 UTC 2023
Do not use a chained assignment for code clarity.
Update #4818.
---
cpukit/score/src/threadcreateidle.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cpukit/score/src/threadcreateidle.c b/cpukit/score/src/threadcreateidle.c
index cb15d5cc3c..4f16a57099 100644
--- a/cpukit/score/src/threadcreateidle.c
+++ b/cpukit/score/src/threadcreateidle.c
@@ -105,7 +105,7 @@ static void _Thread_Create_idle_for_CPU(
* WARNING!!! This is necessary to "kick" start the system and
* MUST be done before _Thread_Start is invoked.
*/
- cpu->heir =
+ cpu->heir = idle;
cpu->executing = idle;
#if defined(RTEMS_SMP)
cpu->ancestor = idle;
--
2.35.3
More information about the devel
mailing list