[PATCH] src: Don't check for retval of some glib functions

Ján Tomko jtomko at redhat.com
Fri Jan 7 08:43:44 UTC 2022


On a Friday in 2022, Michal Privoznik wrote:
>There are a few glib functions that abort on OOM and thus there's
>no point in checking their retval against NULL. Nevertheless, we
>do have those checks in a few places. Remove them.
>
>Generated using the following spatch:
>

[...]
>
>Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
>---
> src/hyperv/hyperv_driver.c | 14 --------------
> src/util/virprocess.c      |  2 --
> 2 files changed, 16 deletions(-)
>

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

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20220107/f1104e1a/attachment-0001.sig>


More information about the libvir-list mailing list