File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 28
28
//! * Use `AcpiTables::from_rsdp` if you have the physical address of the RSDP
29
29
//! * Use `AcpiTables::from_rsdt` if you have the physical address of the RSDT/XSDT
30
30
//! * Use `AcpiTables::search_for_rsdp_bios` if you don't have the address of either, but **you know you are
31
- //! running on BIOS, not UEFI**
31
+ //! running on BIOS, not UEFI**
32
32
//!
33
33
//! `AcpiTables` stores the addresses of all of the tables detected on a platform. The SDTs are parsed by this
34
34
//! library, or can be accessed directly with `from_sdt`, while the `DSDT` and any `SSDTs` should be parsed with
Original file line number Diff line number Diff line change @@ -53,11 +53,8 @@ unsafe impl AcpiTable for Madt {
53
53
impl Madt {
54
54
pub fn get_mpwk_mailbox_addr ( & self ) -> Result < u64 , AcpiError > {
55
55
for entry in self . entries ( ) {
56
- match entry {
57
- MadtEntry :: MultiprocessorWakeup ( entry) => {
58
- return Ok ( entry. mailbox_address ) ;
59
- }
60
- _ => { }
56
+ if let MadtEntry :: MultiprocessorWakeup ( entry) = entry {
57
+ return Ok ( entry. mailbox_address ) ;
61
58
}
62
59
}
63
60
Err ( AcpiError :: InvalidMadt ( MadtError :: UnexpectedEntry ) )
You can’t perform that action at this time.
0 commit comments