[PATCH 4/5] qemu_driver.c: modernize qemuConnectCPUModelComparison()
Jiri Denemark
jdenemar at redhat.com
Tue Jul 21 13:32:46 UTC 2020
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 ret = ...; would need to
be replaced with direct return. I'll send a trivial patch doing this.
Jirka
More information about the libvir-list
mailing list