about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrank Rehwinkel <frankrehwinkel@gmail.com>2024-10-02 07:57:36 -0400
committerOli Scherer <github@oli-obk.de>2024-10-02 20:06:37 +0200
commit1b622f46728a51b6582b02b84407e5f64262479b (patch)
treee93a40dd24d6b8dd1141ede62b993936d29eeb7a
parent3e089b0e16db2779de0c5ca7d54a462d78354fb7 (diff)
downloadrust-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.rs3
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))
     }