mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-08-24 09:49:59 +03:00
tools: remove unused assignment statement in virshStorageVolListCollect
Assigning value true to @success if there is no volumes, that stored value is not used.
This commit is contained in:
@ -1282,10 +1282,8 @@ virshStorageVolListCollect(vshControl *ctl,
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nvols == 0) {
|
if (nvols == 0)
|
||||||
success = true;
|
|
||||||
return list;
|
return list;
|
||||||
}
|
|
||||||
|
|
||||||
/* Retrieve the list of volume names in the pool */
|
/* Retrieve the list of volume names in the pool */
|
||||||
names = vshCalloc(ctl, nvols, sizeof(*names));
|
names = vshCalloc(ctl, nvols, sizeof(*names));
|
||||||
|
Reference in New Issue
Block a user