summary refs log tree commit diff stats
path: root/scripts/qapi/events.py
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2018-07-03 10:53:52 +0200
committerMarkus Armbruster <armbru@redhat.com>2018-07-03 23:18:56 +0200
commit7cb2123f226a88fddcb9a3673c658c818ee6daed (patch)
tree7d166fe930e0804e603e69cfbdde7052203207db /scripts/qapi/events.py
parent1816604b62f4c5ac1032374a941638f2fe199104 (diff)
downloadfocaccia-qemu-7cb2123f226a88fddcb9a3673c658c818ee6daed.tar.gz
focaccia-qemu-7cb2123f226a88fddcb9a3673c658c818ee6daed.zip
qmp: Simplify monitor_qmp_respond()
monitor_qmp_respond() takes both a response object and an error
object.  If an error object is non-null, the response object must be
null, and the response is built from the error object.

Of the two callers, one always passes a null response object, and one
a null error object.  Move building the response object from the error
object to the latter, and drop the error object parameter.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20180703085358.13941-27-armbru@redhat.com>
Diffstat (limited to 'scripts/qapi/events.py')
0 files changed, 0 insertions, 0 deletions