Commit bf76c93
committed
Refine current-task check in mo_task_suspend()
The previous implementation compared `kcb->task_current` against the
task's list node. This is always equivalent to comparing the task's TCB
in the current implementation, so no functional behavior is affected and
the mismatch can never occur.
This change simply makes the intended semantics explicit by comparing
against the TCB directly, improving readability and clarifying the
abstraction.1 parent 3d94a32 commit bf76c93
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
883 | 883 | | |
884 | 884 | | |
885 | 885 | | |
886 | | - | |
| 886 | + | |
887 | 887 | | |
888 | 888 | | |
889 | 889 | | |
| |||
0 commit comments