Signed-off-by: Tim Wiederhake <twiederh(a)redhat.com>
---
src/conf/virnodedeviceobj.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/src/conf/virnodedeviceobj.c b/src/conf/virnodedeviceobj.c
index b213592b56..e8f6792138 100644
--- a/src/conf/virnodedeviceobj.c
+++ b/src/conf/virnodedeviceobj.c
@@ -456,10 +456,7 @@ virNodeDeviceObjListNew(void)
if (!(devs = virObjectRWLockableNew(virNodeDeviceObjListClass)))
return NULL;
- if (!(devs->objs = virHashNew(virObjectFreeHashData))) {
- virObjectUnref(devs);
- return NULL;
- }
+ devs->objs = virHashNew(virObjectFreeHashData);
return devs;
}
--
2.31.1