hw/i386: Replace magic number with field length calculation
commitbfc8c14459dae16b525cd024600d20f022b6ee55
authorDov Murik <dovmurik@linux.ibm.com>
Tue, 22 Feb 2022 07:19:06 +0000 (22 07:19 +0000)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 4 Mar 2022 10:24:52 +0000 (4 11:24 +0100)
treebdb3e076a17b2d59a3901cb966b503672cdcca36
parent64915058e18c2fbff8c80f9ad2e5be854dee2965
hw/i386: Replace magic number with field length calculation

Replce the literal magic number 48 with length calculation (32 bytes at
the end of the firmware after the table footer + 16 bytes of the OVMF
table footer GUID).

No functional change intended.

Signed-off-by: Dov Murik <dovmurik@linux.ibm.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20220222071906.2632426-3-dovmurik@linux.ibm.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/i386/pc_sysfw_ovmf.c