refactor: fix non-doc warnings

This commit is contained in:
2021-11-22 15:42:43 +02:00
parent 4cfa1f2958
commit fabf4e8d3f
21 changed files with 175 additions and 158 deletions
+1 -1
View File
@@ -191,7 +191,7 @@ pub fn sys_fstatat(
/// System call
#[inline(always)]
pub unsafe fn sys_fork() -> Result<Option<Pid>, Errno> {
Errno::from_syscall(unsafe { syscall!(SystemCall::Fork) }).map(|res| {
Errno::from_syscall(syscall!(SystemCall::Fork)).map(|res| {
if res != 0 {
Some(unsafe { Pid::from_raw(res as u32) })
} else {