提交 9db0a63b 编写于 作者: W Wang King 提交者: John Ferlan

tools: remove unused assignment statement in virshStorageVolListCollect

Assigning value true to @success if there is no volumes, that stored value is not used.
上级 b2641b43
......@@ -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));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册