Skip to content

Commit

Permalink
change is_uefi to return a bool
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahspberrypi committed Jan 4, 2024
1 parent 9ae65a3 commit 6a3b4c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/arch/x86_64/kernel/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ pub fn get_start() -> usize {
boot_info().hardware_info.phys_addr_range.start as usize
}

pub fn is_uefi() -> Result<(), ()> {
pub fn is_uefi() -> bool {
match boot_info().platform_info {
PlatformInfo::Uefi { .. } => true,
PlatformInfo::LinuxBootParams { .. } => false,
Expand Down

0 comments on commit 6a3b4c5

Please sign in to comment.