diff --git a/rust/kernel/workqueue.rs b/rust/kernel/workqueue.rs index c6b89f13746901..823ddf30d42d2b 100644 --- a/rust/kernel/workqueue.rs +++ b/rust/kernel/workqueue.rs @@ -391,7 +391,7 @@ impl Work { // SAFETY: When the work was queued, a call to `into_raw` was made. We just canceled // the work without it having the chance to run, so we need to explicitly destroy this // reference (which would have happened in `work_func` if it did run). - unsafe { Ref::from_raw(&*self) }; + unsafe { Ref::from_raw(self) }; } }