Re: [PATCH 4/5] qemu_driver.c: modernize qemuConnectCPUModelComparison()

2020-07-21 Thread Jiri Denemark
On Fri, Jul 17, 2020 at 18:15:55 -0300, Daniel Henrique Barboza wrote: > Use g_auto* on pointers to avoid using the 'cleanup' label. > > In theory the 'ret' variable can also be discarded if the flow > of the logic is reworked. Perhaps another time. Doing so would actually be pretty easy, mostly

[PATCH 4/5] qemu_driver.c: modernize qemuConnectCPUModelComparison()

2020-07-17 Thread Daniel Henrique Barboza
Use g_auto* on pointers to avoid using the 'cleanup' label. In theory the 'ret' variable can also be discarded if the flow of the logic is reworked. Perhaps another time. Signed-off-by: Daniel Henrique Barboza --- src/qemu/qemu_driver.c | 13 + 1 file changed, 5 insertions(+), 8