diff options
| author | Dániel Buga <[email protected]> | 2024-11-19 17:30:31 +0100 |
|---|---|---|
| committer | Dániel Buga <[email protected]> | 2024-11-19 17:30:31 +0100 |
| commit | 448db47263701bf09352eaba785492baa968e76f (patch) | |
| tree | 63e9474af80cf4d0ac8566bf5045998cba863902 /embassy-time | |
| parent | 0f95c72e78e411e0fd10420ebee3c4bd323a210a (diff) | |
Remove noop from queue_generic
Diffstat (limited to 'embassy-time')
| -rw-r--r-- | embassy-time/src/queue_generic.rs | 2 |
1 files changed, 0 insertions, 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 { | |||
| 142 | critical_section::with(|cs| { | 142 | critical_section::with(|cs| { |
| 143 | let mut inner = self.inner.borrow_ref_mut(cs); | 143 | let mut inner = self.inner.borrow_ref_mut(cs); |
| 144 | 144 | ||
| 145 | if inner.is_none() {} | ||
| 146 | |||
| 147 | inner | 145 | inner |
| 148 | .get_or_insert_with(|| { | 146 | .get_or_insert_with(|| { |
| 149 | let handle = unsafe { allocate_alarm() }.unwrap(); | 147 | let handle = unsafe { allocate_alarm() }.unwrap(); |
