OSDN Git Service

SMBIOS: Use macro to set smbios defaults
authorGabriel L. Somlo <gsomlo@gmail.com>
Wed, 23 Apr 2014 13:42:40 +0000 (09:42 -0400)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 5 May 2014 10:29:39 +0000 (12:29 +0200)
commitcb36acb672a380b4ca430e4a12abb3f2186f9f4f
treebd368c46d3c52200d3fce3c2069f1d5597537cad
parente41fca3da72d556942a3e0dc601fbeca5eaab9ce
SMBIOS: Use macro to set smbios defaults

The function smbios_set_defaults() uses a repeating code pattern
for each field. This patch replaces that pattern with a macro.

This patch contains no functional changes.

Signed-off-by: Gabriel Somlo <somlo@cmu.edu>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/i386/smbios.c