]> git.proxmox.com Git - mirror_qemu.git/commit - numa.c
numa: Clean up error reporting in parse_numa()
authorMarkus Armbruster <armbru@redhat.com>
Wed, 17 Oct 2018 08:26:52 +0000 (10:26 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 19 Oct 2018 12:51:34 +0000 (14:51 +0200)
commit4f7ec696f4b124364c1b145dbe835984edc4c887
tree35438ba1b9d254748a28b02429c6b844a2e34072
parent612aea201738cd747b02d2c2acd6e0bf406531cf
numa: Clean up error reporting in parse_numa()

Calling error_report() in a function that takes an Error ** argument
is suspicious.  parse_numa() does that, and then fails without setting
an error.  Its caller main(), via qemu_opts_foreach(), is fine with
it, but clean it up anyway.

While there, give parse_numa() internal linkage.

Cc: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <20181017082702.5581-29-armbru@redhat.com>
include/sysemu/numa.h
numa.c