smbios: Normalize smbios_entry_add()'s error handling to exit(1)

It exits on all error conditions but one, where it returns -1.
Normalize, and return void.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
Markus Armbruster 2013-08-16 15:18:28 +02:00 committed by Michael S. Tsirkin
parent 702d66a813
commit 351a6a73ca
3 changed files with 7 additions and 9 deletions

View file

@ -13,7 +13,7 @@
*
*/
int smbios_entry_add(const char *t);
void smbios_entry_add(const char *t);
void smbios_add_field(int type, int offset, const void *data, size_t len);
uint8_t *smbios_get_table(size_t *length);