]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
storage: Fix broken storage_driver build
authorJohn Ferlan <jferlan@redhat.com>
Fri, 24 Nov 2017 14:42:07 +0000 (09:42 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Fri, 24 Nov 2017 14:42:07 +0000 (09:42 -0500)
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,

         ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/storage/storage_driver.c

index cb45052ef71532ab0befb8174225b36d40c9bd8c..561ca36f908dc707616bc16cd13038675abbd60e 100644 (file)
@@ -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);