]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
tools: remove unused assignment statement in virshStorageVolListCollect
authorWang King <king.wang@huawei.com>
Thu, 13 Apr 2017 02:16:27 +0000 (10:16 +0800)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 13 Apr 2017 12:14:54 +0000 (08:14 -0400)
Assigning value true to @success if there is no volumes, that stored value is not used.

tools/virsh-volume.c

index ddd41d229f052cac77592373979578d93c44f57c..66fe70ea77551ffa3228b1620fa4a2f572843797 100644 (file)
@@ -1282,10 +1282,8 @@ virshStorageVolListCollect(vshControl *ctl,
         goto cleanup;
     }
 
-    if (nvols == 0) {
-        success = true;
+    if (nvols == 0)
         return list;
-    }
 
     /* Retrieve the list of volume names in the pool */
     names = vshCalloc(ctl, nvols, sizeof(*names));