From 6f693d3c1c5a983ee7fa3b5c54d7fa013b2cbb10 Mon Sep 17 00:00:00 2001 From: Sean Rhodes Date: Mon, 30 Sep 2024 21:15:58 +0100 Subject: drivers/tpm: Remove unused 2nd argument in FUNC method MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The method "FUNC" allows 1 argument, so remove the incorrectly referenced and unused second arguemnt. This fixes: ToInteger (Arg1, Local1) Error 6006 - ^ Method argument is not initialized (Arg1) Change-Id: If5e402579a2caff169e12253e5d9c2c493902ec7 Signed-off-by: Sean Rhodes Reviewed-on: https://review.coreboot.org/c/coreboot/+/84605 Tested-by: build bot (Jenkins) Reviewed-by: Michał Kopeć Reviewed-by: Nicholas Sudsgaard --- src/drivers/tpm/ppi.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/drivers/tpm') diff --git a/src/drivers/tpm/ppi.c b/src/drivers/tpm/ppi.c index 2ce1d07808..68923eaeda 100644 --- a/src/drivers/tpm/ppi.c +++ b/src/drivers/tpm/ppi.c @@ -634,7 +634,6 @@ void tpm_ppi_acpi_fill_ssdt(const struct device *dev) acpigen_write_method_serialized("FUNC", 1); acpigen_write_to_integer(ARG0_OP, LOCAL0_OP); - acpigen_write_to_integer(ARG1_OP, LOCAL1_OP); acpigen_write_if(); acpigen_emit_byte(LGREATER_OP); acpigen_emit_byte(LOCAL0_OP); -- cgit v1.2.3