Re: [Qemu-devel] [PATCH 1/3] qapi-dealloc: Reduce use outside of generated code

2016-02-24 Thread Markus Armbruster
Eric Blake writes: > No need to roll our own use of the dealloc visitors when we can > just directly use the qapi_free_FOO() functions that do what we > want in one line. > > In net.c, inline net_visit() into its remaining lone caller. > > After this patch, test-visitor-serialization.c is the onl

[Qemu-devel] [PATCH 1/3] qapi-dealloc: Reduce use outside of generated code

2016-02-23 Thread Eric Blake
No need to roll our own use of the dealloc visitors when we can just directly use the qapi_free_FOO() functions that do what we want in one line. In net.c, inline net_visit() into its remaining lone caller. After this patch, test-visitor-serialization.c is the only non-generated file that needs t