]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virDomainHostdevDefNew: update users not to check return value
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Wed, 26 Feb 2025 17:34:14 +0000 (18:34 +0100)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Mon, 3 Mar 2025 18:22:37 +0000 (19:22 +0100)
commit100dd5f3a736f21302c5e77b77f9f1a4e87aebe6
tree60b69be2684a25377c1c6f72bec68f517acfd827
parent5e3e924248501c85502ea847a5190c30ea13c83f
virDomainHostdevDefNew: update users not to check return value

virDomainHostdevDefNew() has been using g_new0() for a while now. As it
calls abort() on OOM, it's not necessary to check whether
the return value is NULL.

Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com>
Reviewed-by: Laine Stump <laine@redhat.com>
src/conf/domain_conf.c
src/libxl/xen_common.c
src/libxl/xen_xl.c
src/lxc/lxc_native.c
src/vbox/vbox_common.c