diff options
| author | Igor Mammedov <imammedo@redhat.com> | 2016-05-19 15:19:28 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2016-06-07 15:39:27 +0300 |
| commit | 9774ccf7cdb8bfbf024eff02b22f754a49d99df8 (patch) | |
| tree | b0a9d3fa4181dd80749f2260df87400ad9971b9a /hw/acpi/bios-linker-loader.c | |
| parent | 8cc87c3179f3988cf870ae4e637123770bdf82f1 (diff) | |
| download | focaccia-qemu-9774ccf7cdb8bfbf024eff02b22f754a49d99df8.tar.gz focaccia-qemu-9774ccf7cdb8bfbf024eff02b22f754a49d99df8.zip | |
tpm: apci: cleanup TCPA table initialization
At the time build_tpm_tcpa() is called the tcpalog size is always 0, so log_area_start_address which is actually offset from the start of ACPI_BUILD_TPMLOG_FILE is always 0. Also as 'TCPA' is allocated 0 filled, there is no point in calculating always 0 log_area_start_address and set tcpa->log_area_start_address to it since the field should always point to start of ACPI_BUILD_TPMLOG_FILE. Make code easier to read dropping not needed offset calculations. While at that move tcpalog allocation closer to the code that defines its size. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/acpi/bios-linker-loader.c')
0 files changed, 0 insertions, 0 deletions