mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
storage: Fix broken storage_driver build
Commit id '5d5c732d7' had an incorrect assignment and was found by travis build: storage/storage_driver.c:1668:14: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality] if ((obj == virStoragePoolObjListSearch(&driver->pools, ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This commit is contained in:
parent
dcb5d8bb13
commit
6caf67f834
@ -1665,9 +1665,9 @@ storagePoolLookupByTargetPath(virConnectPtr conn,
|
||||
return NULL;
|
||||
|
||||
storageDriverLock();
|
||||
if ((obj == virStoragePoolObjListSearch(&driver->pools,
|
||||
storagePoolLookupByTargetPathCallback,
|
||||
path))) {
|
||||
if ((obj = virStoragePoolObjListSearch(&driver->pools,
|
||||
storagePoolLookupByTargetPathCallback,
|
||||
path))) {
|
||||
def = virStoragePoolObjGetDef(obj);
|
||||
pool = virGetStoragePool(conn, def->name, def->uuid, NULL, NULL);
|
||||
virStoragePoolObjEndAPI(&obj);
|
||||
|
Loading…
Reference in New Issue
Block a user