From 448db47263701bf09352eaba785492baa968e76f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20Buga?= Date: Tue, 19 Nov 2024 17:30:31 +0100 Subject: [PATCH] Remove noop from queue_generic --- embassy-time/src/queue_generic.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/embassy-time/src/queue_generic.rs b/embassy-time/src/queue_generic.rs index 4882afd3e..0068edae8 100644 --- a/embassy-time/src/queue_generic.rs +++ b/embassy-time/src/queue_generic.rs @@ -142,8 +142,6 @@ impl Queue { critical_section::with(|cs| { let mut inner = self.inner.borrow_ref_mut(cs); - if inner.is_none() {} - inner .get_or_insert_with(|| { let handle = unsafe { allocate_alarm() }.unwrap();