spice: Clean up error reporting in add_channel()
commit9338570b7b0b8890269222b7b40e0b819f824dab
authorMarkus Armbruster <armbru@redhat.com>
Wed, 17 Oct 2018 08:26:54 +0000 (17 10:26 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 19 Oct 2018 12:51:34 +0000 (19 14:51 +0200)
tree07a2087145543d57d2ae6678091d948f0e8a2a38
parentd10e05f15d5c3dd5e5cc59c5dfff460d89d48580
spice: Clean up error reporting in add_channel()

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

Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20181017082702.5581-31-armbru@redhat.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
ui/spice-core.c