hvmloader/smbios: Correctly count the number of tables written
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 30 Aug 2013 08:40:29 +0000 (10:40 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 30 Aug 2013 08:40:29 +0000 (10:40 +0200)
commit4aa19549e17650b9bfe2b31d7f52a95696d388f0
tree4a7118435946939178a5056ca23aa73848488137
parentfb3f1c1855bd9aca625bc0d040be4cdcc216e958
hvmloader/smbios: Correctly count the number of tables written

Fixes regression indirectly introduced by c/s 4d23036e709627

That changeset added some smbios tables which were option based on the
toolstack providing appropriate xenstore keys.  The do_struct() macro would
unconditionally increment nr_structs, even if a table was not actually
written.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Keir Fraser <keir@xen.org>
tools/firmware/hvmloader/smbios.c