Signed-off-by: Tim Wiederhake <twiederh(a)redhat.com>
---
src/conf/virstorageobj.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/src/conf/virstorageobj.c b/src/conf/virstorageobj.c
index 6c8a06e8bc..2b6932d7e5 100644
--- a/src/conf/virstorageobj.c
+++ b/src/conf/virstorageobj.c
@@ -170,12 +170,9 @@ virStorageVolObjListNew(void)
if (!(vols = virObjectRWLockableNew(virStorageVolObjListClass)))
return NULL;
- if (!(vols->objsKey = virHashNew(virObjectFreeHashData)) ||
- !(vols->objsName = virHashNew(virObjectFreeHashData)) ||
- !(vols->objsPath = virHashNew(virObjectFreeHashData))) {
- virObjectUnref(vols);
- return NULL;
- }
+ vols->objsKey = virHashNew(virObjectFreeHashData);
+ vols->objsName = virHashNew(virObjectFreeHashData);
+ vols->objsPath = virHashNew(virObjectFreeHashData);
return vols;
}
--
2.31.1