File tree Expand file tree Collapse file tree
src/arch/x86_64/platform/pvh Expand file tree Collapse file tree Original file line number Diff line number Diff 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;
109108impl 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 ( )
You can’t perform that action at this time.
0 commit comments