diff --git a/src/sys/unix/hostcalls_impl/fs.rs b/src/sys/unix/hostcalls_impl/fs.rs index becf117624..5de682fa00 100644 --- a/src/sys/unix/hostcalls_impl/fs.rs +++ b/src/sys/unix/hostcalls_impl/fs.rs @@ -63,8 +63,7 @@ pub(crate) fn fd_advise( _ => return Err(Error::EINVAL), }; - posix_fadvise(file.as_raw_fd(), offset, len, host_advice) - .map_err(|err| errno_from_nix(err.as_errno().unwrap()))?; + posix_fadvise(file.as_raw_fd(), offset, len, host_advice)?; } Ok(())