mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-13 16:15:19 +00: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:
parent
b2641b4392
commit
9db0a63b7e
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user