]> git.proxmox.com Git - mirror_edk2.git/commit
ArmPkg: Fix calculation of offset of chassis SKU Number in SmbiosMiscDxe
authorRebecca Cran <rebecca@nuviainc.com>
Wed, 31 Mar 2021 02:16:18 +0000 (20:16 -0600)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 27 Apr 2021 12:46:26 +0000 (12:46 +0000)
commit13f32d4a642e8af489e75e4446a76de1bb30b011
treefab13108d8b06e0793baeb57d52db392c772875b
parentbbeb1bea4166c577499a26b5097bab4d69829d94
ArmPkg: Fix calculation of offset of chassis SKU Number in SmbiosMiscDxe

The calculation of the chassis SKU number field was being calculated
incorrectly, forgetting that there's one element already present in
the structure.
Fix the calculation and improve code readability by introducing a
SkuNumberField variable.

Signed-off-by: Rebecca Cran <rebecca@nuviainc.com>
Reviewed-by: Leif Lindholm <leif@nuviainc.com>
ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type03/MiscChassisManufacturerFunction.c