Re: [PATCH] virDomainHostdevDefNew: update users not to check return value

2025-02-28 Thread Laine Stump
On 2/27/25 7:46 AM, Roman Bogorodskiy wrote: 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 Reviewed-by: Laine Stump (I had to check to make sure thi

[PATCH] virDomainHostdevDefNew: update users not to check return value

2025-02-27 Thread Roman Bogorodskiy
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 --- src/conf/domain_conf.c | 3 +-- src/libxl/xen_common.c | 4 +--- src/libxl/xen_xl.c | 4 +--- sr