mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
qemu_conf.c: removing unused virQEMUDriverConfigPtr variable
'virQEMUDriverConfigPtr cfg' is declared, initiated, but never used in virQEMUDriverCreateCapabilities(). Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com> Reviewed-by: Erik Skultety <eskultet@redhat.com> Reviewed-by: Christophe de Dinechin <dinechin@redhat.com>
This commit is contained in:
parent
8fe953805a
commit
77725439ba
@ -1266,7 +1266,6 @@ virCapsPtr virQEMUDriverCreateCapabilities(virQEMUDriverPtr driver)
|
||||
virSecurityManagerPtr *sec_managers = NULL;
|
||||
/* Security driver data */
|
||||
const char *doi, *model, *lbl, *type;
|
||||
virQEMUDriverConfigPtr cfg = virQEMUDriverGetConfig(driver);
|
||||
const int virtTypes[] = {VIR_DOMAIN_VIRT_KVM,
|
||||
VIR_DOMAIN_VIRT_QEMU,};
|
||||
|
||||
@ -1313,13 +1312,11 @@ virCapsPtr virQEMUDriverCreateCapabilities(virQEMUDriverPtr driver)
|
||||
}
|
||||
VIR_FREE(sec_managers);
|
||||
|
||||
virObjectUnref(cfg);
|
||||
return caps;
|
||||
|
||||
error:
|
||||
VIR_FREE(sec_managers);
|
||||
virObjectUnref(caps);
|
||||
virObjectUnref(cfg);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user