Skip to content

Commit 800e601

Browse files
committed
vmm/linux: Fix clippy warning
Signed-off-by: Tyler Fanelli <[email protected]>
1 parent 1f13d61 commit 800e601

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vmm/src/linux/vstate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ impl Vcpu {
828828
// _before_ running this, then there is nothing we can do.
829829
Self::TLS_VCPU_PTR.with(|cell: &VcpuCell| {
830830
if let Some(vcpu_ptr) = cell.get() {
831-
if vcpu_ptr == self as *mut Vcpu {
831+
if std::ptr::eq(vcpu_ptr, self) {
832832
Self::TLS_VCPU_PTR.with(|cell: &VcpuCell| cell.take());
833833
return Ok(());
834834
}

0 commit comments

Comments
 (0)