diff --git a/rtic-common/src/wait_queue.rs b/rtic-common/src/wait_queue.rs index 4debcb928b7..8a3f80ea7ec 100644 --- a/rtic-common/src/wait_queue.rs +++ b/rtic-common/src/wait_queue.rs @@ -140,11 +140,10 @@ impl Link { /// Remove this link from a linked list. pub fn remove_from_list(&self, list: &DoublyLinkedList) { - if self.is_popped() { - return; - } - cs::with(|_| { + if self.is_popped() { + return; + } // Make sure all previous writes are visible core::sync::atomic::fence(Ordering::SeqCst);