Add boards/ && cargo clippy

This commit is contained in:
Yifan Wu 2022-01-24 17:50:49 -08:00
parent b96db03e48
commit 04bb890fb7
17 changed files with 73 additions and 93 deletions

View file

@ -60,11 +60,10 @@ pub fn sys_waitpid(pid: isize, exit_code_ptr: *mut i32) -> isize {
// ---- access current PCB exclusively
let mut inner = task.inner_exclusive_access();
if inner
if !inner
.children
.iter()
.find(|p| pid == -1 || pid as usize == p.getpid())
.is_none()
.any(|p| pid == -1 || pid as usize == p.getpid())
{
return -1;
// ---- release current PCB