]> git.proxmox.com Git - mirror_qemu.git/commit
seccomp: Clean up error reporting in parse_sandbox()
authorMarkus Armbruster <armbru@redhat.com>
Wed, 17 Oct 2018 08:26:41 +0000 (10:26 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 19 Oct 2018 12:51:34 +0000 (14:51 +0200)
commit6548459769e5e8b8d23a90ce0adffd067b240059
treef60ffc5b273a74e0f882aae5bedda0ac692708a0
parentfff4c9c32595e71bca3d1a89beb0781a5be2201b
seccomp: Clean up error reporting in parse_sandbox()

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

Cc: Eduardo Otubo <otubo@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Eduardo Otubo <otubo@redhat.com>
Message-Id: <20181017082702.5581-18-armbru@redhat.com>
qemu-seccomp.c
vl.c