mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06: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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user