diff options
| author | Frank Rehwinkel <frankrehwinkel@gmail.com> | 2024-10-02 07:57:36 -0400 |
|---|---|---|
| committer | Oli Scherer <github@oli-obk.de> | 2024-10-02 20:06:37 +0200 |
| commit | 1b622f46728a51b6582b02b84407e5f64262479b (patch) | |
| tree | e93a40dd24d6b8dd1141ede62b993936d29eeb7a | |
| parent | 3e089b0e16db2779de0c5ca7d54a462d78354fb7 (diff) | |
| download | rust-1b622f46728a51b6582b02b84407e5f64262479b.tar.gz rust-1b622f46728a51b6582b02b84407e5f64262479b.zip | |
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.
| -rw-r--r-- | src/tools/miri/src/shims/unix/linux/epoll.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/tools/miri/src/shims/unix/linux/epoll.rs b/src/tools/miri/src/shims/unix/linux/epoll.rs index ff0709dd5ac..13c44334d58 100644 --- a/src/tools/miri/src/shims/unix/linux/epoll.rs +++ b/src/tools/miri/src/shims/unix/linux/epoll.rs @@ -207,9 +207,6 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> { ); } - let mut epoll_instance = Epoll::default(); - epoll_instance.ready_list = Rc::new(RefCell::new(BTreeMap::new())); - let fd = this.machine.fds.insert_new(Epoll::default()); Ok(Scalar::from_i32(fd)) } |
