Signed-off-by: Tim Wiederhake <twiederh@xxxxxxxxxx> --- src/conf/virnetworkobj.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/conf/virnetworkobj.c b/src/conf/virnetworkobj.c index 66f916c749..ea021892c7 100644 --- a/src/conf/virnetworkobj.c +++ b/src/conf/virnetworkobj.c @@ -118,8 +118,7 @@ virNetworkObjNew(void) virBitmapSetBitExpand(obj->classIdMap, 2) < 0) goto error; - if (!(obj->ports = virHashNew(virNetworkObjPortFree))) - goto error; + obj->ports = virHashNew(virNetworkObjPortFree); virObjectLock(obj); -- 2.31.1