storage: Use virStoragePoolObjDefUseNewDef

Use the new accessor API for storage_driver.
This commit is contained in:
John Ferlan 2017-07-26 13:05:03 -04:00
parent 67129bb435
commit d085197ce2

View File

@ -94,10 +94,8 @@ virStoragePoolUpdateInactive(virStoragePoolObjPtr *objptr)
if (!virStoragePoolObjGetConfigFile(obj)) {
virStoragePoolObjRemove(&driver->pools, obj);
*objptr = NULL;
} else if (obj->newDef) {
virStoragePoolDefFree(obj->def);
obj->def = obj->newDef;
obj->newDef = NULL;
} else if (virStoragePoolObjGetNewDef(obj)) {
virStoragePoolObjDefUseNewDef(obj);
}
}