aboutsummaryrefslogtreecommitdiff
path: root/arch_init.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2013-08-16 15:18:28 +0200
committerMichael S. Tsirkin <mst@redhat.com>2013-09-28 22:40:58 +0300
commit351a6a73ca7a9123f0dfd6c6f85fd01e82fe3741 (patch)
tree842a686eecfd3dfb9c88c9880541460cc7b5aba1 /arch_init.c
parent702d66a813dd84afd7c3d1ad8cbdcc8e3449bcd9 (diff)
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>
Diffstat (limited to 'arch_init.c')
-rw-r--r--arch_init.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch_init.c b/arch_init.c
index e47e1399bb..6ae8eb6340 100644
--- a/arch_init.c
+++ b/arch_init.c
@@ -1137,9 +1137,7 @@ void do_acpitable_option(const QemuOpts *opts)
void do_smbios_option(const char *optarg)
{
#ifdef TARGET_I386
- if (smbios_entry_add(optarg) < 0) {
- exit(1);
- }
+ smbios_entry_add(optarg);
#endif
}