Skip to content

Commit 06d54c5

Browse files
committed
drm/asahi: event: Clippy fixes
Signed-off-by: Asahi Lina <[email protected]>
1 parent b33ea2b commit 06d54c5

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/gpu/drm/asahi/event.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ impl EventManager {
153153
for slot in 0..NUM_EVENTS {
154154
inner.stamps[slot as usize]
155155
.0
156-
.store((slot as u32) << 24, Ordering::Relaxed);
156+
.store(slot << 24, Ordering::Relaxed);
157157
}
158158

159159
Ok(EventManager {
@@ -229,7 +229,6 @@ impl EventManager {
229229
) -> Option<Arc<dyn workqueue::WorkQueue + Send + Sync>> {
230230
self.alloc
231231
.with_inner(|inner| inner.owners[slot as usize].as_ref().cloned())
232-
.map(|a| a.clone())
233232
}
234233

235234
/// Fail all commands, used when the GPU crashes.

0 commit comments

Comments
 (0)