Skip to content

Commit e1a01b9

Browse files
committed
fixup! rust: drm: Add GPUVM Manager abstraction
1 parent ec3c807 commit e1a01b9

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

rust/kernel/drm/gpuvm.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,7 @@ impl<T: DriverGpuVm> OpMap<T> {
162162
GpuVaFlags(self.0.flags)
163163
}
164164
pub fn object(&self) -> &Object<T> {
165-
let p = unsafe {
166-
<Object::<T> as IntoGEMObject>::from_raw(self.0.gem.obj)
167-
};
165+
let p = unsafe { <Object<T> as IntoGEMObject>::from_raw(self.0.gem.obj) };
168166
// SAFETY: The GEM object has an active reference for the lifetime of this op
169167
&*p
170168
}
@@ -736,7 +734,7 @@ impl<T: DriverGpuVm> LockedGpuVm<'_, '_, T> {
736734
obj: obj.as_raw(),
737735
},
738736
flags: flags.as_raw(),
739-
}
737+
},
740738
};
741739

742740
// SAFETY: LockedGpuVm implies the right locks are held.

0 commit comments

Comments
 (0)