Explorar o código

Merge branch 'patch-add-file-mapping' into feat-dynamic-link

MemoryShore hai 8 meses
pai
achega
10d64ec601
Modificáronse 1 ficheiros con 0 adicións e 2 borrados
  1. 0 2
      kernel/src/filesystem/vfs/file.rs

+ 0 - 2
kernel/src/filesystem/vfs/file.rs

@@ -745,9 +745,7 @@ impl FileDescriptorVec {
 
         // 把文件描述符数组对应位置设置为空
         let file = self.fds[fd as usize].take().unwrap();
-        self.fds[fd as usize].take().unwrap();
 
-        assert!(Arc::strong_count(&file) == 1);
         return Ok(file);
     }