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:
Wang King 2017-04-13 10:16:27 +08:00 committed by John Ferlan
parent b2641b4392
commit 9db0a63b7e

View 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));