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