Fix extra parentheses

master
Jiajie Chen 6 years ago
parent 6f5414c531
commit 8b07e7d31c

@ -202,7 +202,7 @@ impl PageTableImpl {
let table = unsafe { &mut *frame_to_page_table(frame) }; let table = unsafe { &mut *frame_to_page_table(frame) };
PageTableImpl( PageTableImpl(
MappedPageTable::new(table, frame_to_page_table), MappedPageTable::new(table, frame_to_page_table),
core::mem::MaybeUninit::uninitialized().into_initialized()(), core::mem::MaybeUninit::uninitialized().into_initialized(),
frame, frame,
) )
} }
@ -217,7 +217,7 @@ impl PageTableExt for PageTableImpl {
unsafe { unsafe {
PageTableImpl( PageTableImpl(
MappedPageTable::new(table, frame_to_page_table), MappedPageTable::new(table, frame_to_page_table),
core::mem::MaybeUninit::uninitialized().into_initialized()(), core::mem::MaybeUninit::uninitialized().into_initialized(),
frame, frame,
) )
} }

Loading…
Cancel
Save