Re: [Qemu-devel] [PATCH 26/32] qmp: Simplify monitor_qmp_respond()

2018-07-02 Thread Eric Blake
On 07/02/2018 11:22 AM, Markus Armbruster wrote: 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 objec

[Qemu-devel] [PATCH 26/32] qmp: Simplify monitor_qmp_respond()

2018-07-02 Thread Markus Armbruster
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