Skip to content

Commit 71974ce

Browse files
committed
f
1 parent 9b93b35 commit 71974ce

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

  • src/arch/x86_64/platform/pvh

src/arch/x86_64/platform/pvh/mod.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ unsafe extern "C" fn rust_start(info: *const u32) -> ! {
8888

8989
let max_phys_addr = start_info
9090
.memmap()
91-
.unwrap()
9291
.iter()
9392
.filter(|memmap| memmap.ty == MemmapType::Ram)
9493
.map(|memmap| memmap.addr + memmap.size)
@@ -109,7 +108,7 @@ pub struct DeviceTree;
109108
impl DeviceTree {
110109
pub fn create() -> FdtWriterResult<&'static [u8]> {
111110
let start_info = start_info();
112-
let mut fdt = Fdt::new("multiboot")?.mmap(start_info.memmap().unwrap())?;
111+
let mut fdt = Fdt::new("multiboot")?.mmap(start_info.memmap())?;
113112

114113
if let Some(cmdline) = start_info.cmdline() {
115114
let cmdline = cmdline.to_str().unwrap().to_owned();
@@ -126,7 +125,7 @@ pub fn find_kernel() -> &'static [u8] {
126125
let start_info = start_info();
127126

128127
let modlist = start_info.modlist();
129-
let module = &modlist.unwrap()[0];
128+
let module = &modlist[0];
130129
let module = unsafe { module.identity_reader() };
131130

132131
module.as_slice()

0 commit comments

Comments
 (0)