mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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:
@@ -181,7 +181,7 @@ impl SerialManager {
|
|||||||
_ => return Ok(None),
|
_ => return Ok(None),
|
||||||
};
|
};
|
||||||
|
|
||||||
let epoll_fd_data = if let ConsoleTransport::Socket(_) = transport {
|
let in_event = if let ConsoleTransport::Socket(_) = transport {
|
||||||
EpollDispatch::Socket
|
EpollDispatch::Socket
|
||||||
} else {
|
} else {
|
||||||
EpollDispatch::File
|
EpollDispatch::File
|
||||||
@@ -191,7 +191,7 @@ impl SerialManager {
|
|||||||
epoll_fd,
|
epoll_fd,
|
||||||
epoll::ControlOptions::EPOLL_CTL_ADD,
|
epoll::ControlOptions::EPOLL_CTL_ADD,
|
||||||
in_fd,
|
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)?;
|
.map_err(Error::Epoll)?;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user