From 1db2f4f76761e64dc4bb4bf557eeccda0b424f99 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Tue, 26 Aug 2014 22:17:07 -0600 Subject: [PATCH] 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 --- tools/virsh-domain.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index befc87a5d7..c75cd73b5b 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)