mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-21 10:50:24 +03:00
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…
x
Reference in New Issue
Block a user