hw/arm/virt-acpi-build: Drop local iort_node_offset
authorNicolin Chen <nicolinc@nvidia.com>
Wed, 19 Jun 2024 00:17:08 +0000 (17:17 -0700)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 3 Jul 2024 22:14:06 +0000 (18:14 -0400)
commite9fd827711ed47edfe8cf23036a56e5a83f2bfda
tree9ed6bcf746c4579906d049ab81c054ba0c3b5fb2
parentd72479b11797c28893e1e3fc565497a9cae5ca16
hw/arm/virt-acpi-build: Drop local iort_node_offset

Both the other two callers of build_iort_id_mapping() just directly pass
in the IORT_NODE_OFFSET macro. Keeping a "const uint32_t" local variable
storing the same value doesn't have any gain.

Simplify this by replacing the only place using this local variable with
the macro directly.

Signed-off-by: Nicolin Chen <nicolinc@nvidia.com>
Message-Id: <20240619001708.926511-1-nicolinc@nvidia.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/arm/virt-acpi-build.c