mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00:00
qemu: Don't check the output of virGetUserConfigDirectory()
virGetUserConfigDirectory() *never* *ever* returns NULL, making the checks for it completely unnecessary. Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
7f5de0672b
commit
c1a1c75952
@ -177,8 +177,7 @@ virQEMUDriverConfigPtr virQEMUDriverConfigNew(bool privileged)
|
||||
|
||||
cfg->swtpmStateDir = g_strdup_printf("%s/swtpm", cfg->stateDir);
|
||||
|
||||
if (!(cfg->configBaseDir = virGetUserConfigDirectory()))
|
||||
return NULL;
|
||||
cfg->configBaseDir = virGetUserConfigDirectory();
|
||||
|
||||
cfg->libDir = g_strdup_printf("%s/qemu/lib", cfg->configBaseDir);
|
||||
cfg->saveDir = g_strdup_printf("%s/qemu/save", cfg->configBaseDir);
|
||||
|
Loading…
x
Reference in New Issue
Block a user