qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] hw/loongarch: remove acpi-build.c unused variable 'aml_len'


From: Richard Henderson
Subject: Re: [PATCH] hw/loongarch: remove acpi-build.c unused variable 'aml_len'
Date: Fri, 5 Aug 2022 09:57:33 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0

On 7/20/22 21:00, Song Gao wrote:
@@ -413,7 +413,6 @@ static void acpi_build(AcpiBuildTables *tables, 
MachineState *machine)
      AcpiFadtData fadt_data;
      unsigned facs, rsdt, fadt, dsdt;
      uint8_t *u;
-    size_t aml_len = 0;
...
@@ -451,7 +444,6 @@ static void acpi_build(AcpiBuildTables *tables, 
MachineState *machine)
      fadt_data.xdsdt_tbl_offset = &dsdt;
      build_fadt(tables_blob, tables->linker, &fadt_data,
                 lams->oem_id, lams->oem_table_id);
-    aml_len += tables_blob->len - fadt;

This in turn removes the last use of fadt.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]