mirror of https://gitee.com/openkylin/libvirt.git
virsh: fix dead store
Two copy-and-paste bugs in a row. :( * tools/virsh.c (cmdUndefine): Also avoid dead store.
This commit is contained in:
parent
2cc1ad61c7
commit
e08adab31d
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue