[sq] fix unused Result

This commit is contained in:
Berkus Decker 2021-02-28 00:44:14 +02:00
parent cc163e6d61
commit ff12867b02
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ impl BootInfo {
/* Remove the region in question */
self.regions[reg_index] = BootInfoMemRegion::new();
/* Add the remaining regions in largest to smallest order */
self.insert_region(rem_large);
self.insert_region(rem_large)?;
if self.insert_region(rem_small).is_err() {
println!("BootInfo::alloc_region(): wasted {} bytes due to alignment, try to increase NUM_MEM_REGIONS", rem_small.size());
}