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 <eblake@redhat.com>
This commit is contained in:
Eric Blake 2014-08-26 22:17:07 -06:00
parent 03b994fac0
commit 1db2f4f767

View 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)