[PATCH] qemu: Drop NULL checks guarding g_slist_free_full()

Ján Tomko jtomko at redhat.com
Fri Nov 4 09:38:32 UTC 2022


On a Friday in 2022, Michal Privoznik wrote:
>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 at redhat.com>
>---
> src/qemu/qemu_domain.c           |  8 +++-----
> src/qemu/qemu_migration_cookie.c | 10 ++++------
> 2 files changed, 7 insertions(+), 11 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano


More information about the libvir-list mailing list