Skip to content

Commit

Permalink
[refactor] delete redundant assertion in block_resched()
Browse files Browse the repository at this point in the history
  • Loading branch information
hky1999 committed Oct 11, 2024
1 parent ec64c8e commit 836a79d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions modules/axtask/src/run_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -308,11 +308,6 @@ impl<'a, G: BaseGuard> AxRunQueueRef<'a, G> {
// Current task's state has been changed to `Blocked` and added to the wait queue.
// Note that the state may have been set as `Ready` in `unblock_task()`,
// see `unblock_task()` for details.
assert!(
curr.is_blocked() | curr.is_ready(),
"current task is not blocked or ready, state: {:?}",
curr.state()
);

debug!("task block: {}", curr.id_name());
self.inner.resched(false);
Expand Down

0 comments on commit 836a79d

Please sign in to comment.