We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb6dd27 commit 90bd921Copy full SHA for 90bd921
src/firecracker/examples/uffd/uffd_utils.rs
@@ -191,7 +191,7 @@ impl UffdHandler {
191
192
fn zero_out(&mut self, addr: u64) -> bool {
193
match unsafe { self.uffd.zeropage(addr as *mut _, self.page_size, true) } {
194
- Ok(r) if r >= 0 => true,
+ Ok(_) => true,
195
Err(Error::ZeropageFailed(error)) if error as i32 == libc::EAGAIN => false,
196
r => panic!("Unexpected zeropage result: {:?}", r),
197
}
0 commit comments