Skip to content

Commit 1b622f4

Browse files
FrankReholi-obk
authored andcommitted
epoll: remove unnecessary instructions
A couple of instructions were left over from an earlier rebase it would seem. They don't impact the logic but the ready_list type is about to change in the next commit. Rather than modify one of these lines in the commit that changes ready_list, only to have these lines removed later on, remove them now. They don't impact the tests results.
1 parent 3e089b0 commit 1b622f4

File tree

1 file changed

+0
-3
lines changed
  • src/tools/miri/src/shims/unix/linux

1 file changed

+0
-3
lines changed

src/tools/miri/src/shims/unix/linux/epoll.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,6 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
207207
);
208208
}
209209

210-
let mut epoll_instance = Epoll::default();
211-
epoll_instance.ready_list = Rc::new(RefCell::new(BTreeMap::new()));
212-
213210
let fd = this.machine.fds.insert_new(Epoll::default());
214211
Ok(Scalar::from_i32(fd))
215212
}

0 commit comments

Comments
 (0)