summaryrefslogtreecommitdiff
path: root/src/fcntl.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/fcntl.rs')
-rw-r--r--src/fcntl.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/fcntl.rs b/src/fcntl.rs
index 160b022d..65082834 100644
--- a/src/fcntl.rs
+++ b/src/fcntl.rs
@@ -809,9 +809,7 @@ pub fn fspacectl_all(fd: RawFd, offset: libc::off_t, len: libc::off_t)
0, // No flags are currently supported
&mut rqsr
)};
- if let Err(e) = Errno::result(res) {
- return Err(e);
- }
+ Errno::result(res)?;
}
Ok(())
}