提交 e08adab3 编写于 作者: E Eric Blake

virsh: fix dead store

Two copy-and-paste bugs in a row.  :(

* tools/virsh.c (cmdUndefine): Also avoid dead store.
上级 2cc1ad61
......@@ -1445,9 +1445,6 @@ cmdUndefine(vshControl *ctl, const vshCmd *cmd)
if (!vshConnectionUsability(ctl, ctl->conn))
return false;
if (vshCommandOptString(cmd, "domain", &name) <= 0)
return false;
if (!(dom = vshCommandOptDomain(ctl, cmd, &name)))
return false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册