]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Drop NULL checks guarding g_slist_free_full()
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 4 Nov 2022 09:11:46 +0000 (10:11 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 4 Nov 2022 09:47:57 +0000 (10:47 +0100)
commiteebef24d96dc26214bbd264be2eaddff7dafb2b6
treee57e48e134663a514fcb090cb522dbb28caca50b
parent9acd9fa7336fbc910b92254f40be7570a353e4c9
qemu: Drop NULL checks guarding g_slist_free_full()

The g_slist_free_full() function is perfectly capable of handling
NULL (in which case it's NOP), therefore there's no need to check
passed pointers for NULL. We have them though in couple of
places. Drop them.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_domain.c
src/qemu/qemu_migration_cookie.c