]> git.proxmox.com Git - mirror_qemu.git/commit
vl: Clean up error reporting in parse_add_fd()
authorMarkus Armbruster <armbru@redhat.com>
Wed, 17 Oct 2018 08:26:42 +0000 (10:26 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 19 Oct 2018 12:51:34 +0000 (14:51 +0200)
commit6353218b8c54dc6be6abb01c07a087add07ee5ce
tree89f288a0929a8b864c53b619104209fa9cb25ad9
parent6548459769e5e8b8d23a90ce0adffd067b240059
vl: Clean up error reporting in parse_add_fd()

Calling error_report() in a function that takes an Error ** argument
is suspicious.  parse_add_fd() 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.

Also change call of cleanup_add_fd(), which can't fail, for symmetry.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20181017082702.5581-19-armbru@redhat.com>
vl.c