Skip to content

Commit

Permalink
remove unused is_some() call
Browse files Browse the repository at this point in the history
Signed-off-by: guoweikang <[email protected]>
  • Loading branch information
guoweikang committed Oct 16, 2024
1 parent c7143b9 commit ce90683
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/axtask/src/wait_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ impl WaitQueue {
let timeout = axhal::time::wall_time() >= deadline;

// Always try to remove the task from wait list.
self.queue.lock().remove(&waiter).is_some();
self.queue.lock().remove(&waiter);
// Always try to remove the task from the timer list.
self.cancel_timer(curr);
timeout
Expand Down

0 comments on commit ce90683

Please sign in to comment.