mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
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:
parent
03b994fac0
commit
1db2f4f767
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user