Remove some unwraps

This commit is contained in:
Julian Stecklina 2022-11-23 14:11:54 +01:00
parent 8559bf664e
commit 1ca83c25d5
1 changed files with 2 additions and 2 deletions

View File

@ -176,9 +176,9 @@ impl InitrdLoader {
handle: Handle,
mut file: RegularFile,
) -> Result<Self> {
initrd_verify(boot_services, &mut file).unwrap();
initrd_verify(boot_services, &mut file)?;
let range = initrd_location(&mut file).unwrap();
let range = initrd_location(&mut file)?;
let mut proto = Box::pin(LoadFile2Protocol {
load_file: raw_load_file,
file,