Skip to content

Commit b839d84

Browse files
committed
AML: don't warn if \_INI or \_SB._INI don't exist
1 parent a5e376b commit b839d84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/aml/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,10 @@ where
187187
/*
188188
* This should match the initialization order of ACPICA and uACPI.
189189
*/
190-
if let Err(err) = self.evaluate(AmlName::from_str("\\_INI").unwrap(), vec![]) {
190+
if let Err(err) = self.evaluate_if_present(AmlName::from_str("\\_INI").unwrap(), vec![]) {
191191
warn!("Invoking \\_INI failed: {:?}", err);
192192
}
193-
if let Err(err) = self.evaluate(AmlName::from_str("\\_SB._INI").unwrap(), vec![]) {
193+
if let Err(err) = self.evaluate_if_present(AmlName::from_str("\\_SB._INI").unwrap(), vec![]) {
194194
warn!("Invoking \\_SB._INI failed: {:?}", err);
195195
}
196196

0 commit comments

Comments
 (0)