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 <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2021-01-28 11:52:14 +00:00 committed by Sebastien Boeuf
parent c29caf2a85
commit 952f9bd3fe

View File

@ -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])],
),
],
)