vmm: serial_manager: Improve event variable name

Name the variable after what the intention on the caller side not the
callee name.

Signed-off-by: Rob Bradford <rbradford@meta.com>
This commit is contained in:
Rob Bradford
2026-03-06 09:13:41 -08:00
parent 4c2b2110c9
commit e7e5fefb29

View File

@@ -181,7 +181,7 @@ impl SerialManager {
_ => return Ok(None),
};
let epoll_fd_data = if let ConsoleTransport::Socket(_) = transport {
let in_event = if let ConsoleTransport::Socket(_) = transport {
EpollDispatch::Socket
} else {
EpollDispatch::File
@@ -191,7 +191,7 @@ impl SerialManager {
epoll_fd,
epoll::ControlOptions::EPOLL_CTL_ADD,
in_fd,
epoll::Event::new(epoll::Events::EPOLLIN, epoll_fd_data as u64),
epoll::Event::new(epoll::Events::EPOLLIN, in_event as u64),
)
.map_err(Error::Epoll)?;