rt: Remove some unnecessary setting of rust_task::killed
The value of this variable doesn't matter after the task fails.
This commit is contained in:
@@ -277,7 +277,6 @@ rust_task::yield(size_t time_in_us) {
|
||||
|
||||
if (killed && !dead()) {
|
||||
unblock();
|
||||
killed = false;
|
||||
fail();
|
||||
}
|
||||
yield_timer.reset_us(time_in_us);
|
||||
@@ -286,7 +285,6 @@ rust_task::yield(size_t time_in_us) {
|
||||
ctx.next->swap(ctx);
|
||||
|
||||
if (killed) {
|
||||
killed = false;
|
||||
fail();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user