From 952f9bd3feef465ce9880fd916d44ab51405aa92 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Thu, 28 Jan 2021 11:52:14 +0000 Subject: [PATCH] vmm: acpi: Remove incorrect return statement _EJx built in should not return. dsdt.dsl 813: Return (CEJ0 (0x00)) Warning 3104 - ^ Reserved method should not return a value (_EJ0) dsdt.dsl 813: Return (CEJ0 (0x00)) Error 6080 - ^ Called method returns no value Fixes: #2216 Signed-off-by: Rob Bradford --- vmm/src/cpu.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/vmm/src/cpu.rs b/vmm/src/cpu.rs index 43bea036e..a4a74c358 100644 --- a/vmm/src/cpu.rs +++ b/vmm/src/cpu.rs @@ -1133,10 +1133,7 @@ impl Aml for CPU { 1, false, // Call into CEJ0 method which will actually eject device - vec![&aml::Return::new(&aml::MethodCall::new( - "CEJ0".into(), - vec![&self.cpu_id], - ))], + vec![&aml::MethodCall::new("CEJ0".into(), vec![&self.cpu_id])], ), ], )