qemu: Remove unused var 'corestr' from virQEMUDriverConfigLoadFile

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa 2019-06-18 09:02:28 +02:00
parent 03f224cdd6
commit a7d3599a4e

View File

@ -990,7 +990,6 @@ int virQEMUDriverConfigLoadFile(virQEMUDriverConfigPtr cfg,
{
virConfPtr conf = NULL;
int ret = -1;
char *corestr = NULL;
/* Just check the file is readable before opening it, otherwise
* libvirt emits an error.
@ -1057,7 +1056,6 @@ int virQEMUDriverConfigLoadFile(virQEMUDriverConfigPtr cfg,
ret = 0;
cleanup:
VIR_FREE(corestr);
virConfFree(conf);
return ret;
}