Re: [Qemu-devel] [PATCH v9 04/37] hmp: Improve use of qapi visitor

2016-01-20 Thread Markus Armbruster
Eric Blake writes: > Cache the visitor in a local variable instead of repeatedly > calling the accessor. Pass NULL for the visit_start_struct() > object (which matches the fact that we were already passing 0 > for the size argument, because we aren't using the visit to > allocate a qapi struct).

[Qemu-devel] [PATCH v9 04/37] hmp: Improve use of qapi visitor

2016-01-19 Thread Eric Blake
Cache the visitor in a local variable instead of repeatedly calling the accessor. Pass NULL for the visit_start_struct() object (which matches the fact that we were already passing 0 for the size argument, because we aren't using the visit to allocate a qapi struct). Signed-off-by: Eric Blake Re