]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
virsh: drop unused variable
authorEric Blake <eblake@redhat.com>
Wed, 27 Aug 2014 04:17:07 +0000 (22:17 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 27 Aug 2014 04:17:07 +0000 (22:17 -0600)
While prepping for virDomainBlockJob patches, I found some dead code.

* tools/virsh-domain.c (blockJobImpl): Kill unused 'name'.

Signed-off-by: Eric Blake <eblake@redhat.com>
tools/virsh-domain.c

index befc87a5d72839a9cb33a41ef65f542dfd1770ac..c75cd73b5b4faccb754d78c4f3d9276645904f89 100644 (file)
@@ -1475,14 +1475,14 @@ blockJobImpl(vshControl *ctl, const vshCmd *cmd,
              virDomainPtr *pdom)
 {
     virDomainPtr dom = NULL;
-    const char *name, *path;
+    const char *path;
     unsigned long bandwidth = 0;
     int ret = -1;
     const char *base = NULL;
     const char *top = NULL;
     unsigned int flags = 0;
 
-    if (!(dom = vshCommandOptDomain(ctl, cmd, &name)))
+    if (!(dom = vshCommandOptDomain(ctl, cmd, NULL)))
         goto cleanup;
 
     if (vshCommandOptStringReq(ctl, cmd, "path", &path) < 0)