]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virsh: fix dead store
authorEric Blake <eblake@redhat.com>
Fri, 12 Aug 2011 18:07:39 +0000 (12:07 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 12 Aug 2011 18:27:06 +0000 (12:27 -0600)
Two copy-and-paste bugs in a row.  :(

* tools/virsh.c (cmdUndefine): Also avoid dead store.

tools/virsh.c

index f995ae6697a5ff9a014a4706d2f7b3a9740b9eec..51ba0a803694658b22ed9de5bb02e5386bc1ecc7 100644 (file)
@@ -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;