From e08adab31d6b81fef14234189e255e797c6f482f Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Fri, 12 Aug 2011 12:07:39 -0600 Subject: [PATCH] virsh: fix dead store Two copy-and-paste bugs in a row. :( * tools/virsh.c (cmdUndefine): Also avoid dead store. --- tools/virsh.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/tools/virsh.c b/tools/virsh.c index f995ae6697..51ba0a8036 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -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;