From: Eric Blake Date: Wed, 27 Aug 2014 04:17:07 +0000 (-0600) Subject: virsh: drop unused variable X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=1db2f4f76761e64dc4bb4bf557eeccda0b424f99;p=people%2Fliuw%2Flibxenctrl-split%2Flibvirt.git virsh: drop unused variable While prepping for virDomainBlockJob patches, I found some dead code. * tools/virsh-domain.c (blockJobImpl): Kill unused 'name'. Signed-off-by: Eric Blake --- diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index befc87a5d..c75cd73b5 100644 --- a/tools/virsh-domain.c +++ b/tools/virsh-domain.c @@ -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)