Skip to content

Commit 63d40b8

Browse files
committed
rt: Remove some unnecessary setting of rust_task::killed
The value of this variable doesn't matter after the task fails.
1 parent d52888f commit 63d40b8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/rt/rust_task.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,6 @@ rust_task::yield(size_t time_in_us) {
277277

278278
if (killed && !dead()) {
279279
unblock();
280-
killed = false;
281280
fail();
282281
}
283282
yield_timer.reset_us(time_in_us);
@@ -286,7 +285,6 @@ rust_task::yield(size_t time_in_us) {
286285
ctx.next->swap(ctx);
287286

288287
if (killed) {
289-
killed = false;
290288
fail();
291289
}
292290
}

0 commit comments

Comments
 (0)