]> Git Repo - qemu.git/commit - vl.c
vl: Clean up error reporting in parse_add_fd()
authorMarkus Armbruster <[email protected]>
Wed, 17 Oct 2018 08:26:42 +0000 (10:26 +0200)
committerMarkus Armbruster <[email protected]>
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 <[email protected]>
Reviewed-by: Marc-AndrĂ© Lureau <[email protected]>
Message-Id: <20181017082702[email protected]>
vl.c
This page took 0.024498 seconds and 4 git commands to generate.