hw/smbios: code cleanup - use macro definitions for table header handles
authorAni Sinha <ani@anisinha.ca>
Wed, 23 Feb 2022 14:33:20 +0000 (20:03 +0530)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 4 Mar 2022 13:30:52 +0000 (08:30 -0500)
commit3818acf56480ae07f8801f9255b82fe587ef39c1
tree5f79f446f93cea37fd91684fe9b92016d46b492b
parentf8bdfbdba9082f20b414fe0b768c4e2882b31059
hw/smbios: code cleanup - use macro definitions for table header handles

This is a minor cleanup. Using macro definitions makes the code more
readable. It is at once clear which tables use which handle numbers in their
header. It also makes it easy to calculate the gaps between the numbers and
update them if needed.

Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Ani Sinha <ani@anisinha.ca>
Message-Id: <20220223143322.927136-6-ani@anisinha.ca>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
hw/smbios/smbios.c