storage: 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:
Fabiano Fidêncio 2019-12-19 09:36:22 +01:00
parent aa4a0264bf
commit 87df8493d5

View File

@ -278,7 +278,7 @@ storageStateInitialize(bool privileged,
} else { } else {
configdir = virGetUserConfigDirectory(); configdir = virGetUserConfigDirectory();
rundir = virGetUserRuntimeDirectory(); rundir = virGetUserRuntimeDirectory();
if (!(configdir && rundir)) if (!rundir)
goto error; goto error;
driver->configDir = g_strdup_printf("%s/storage", configdir); driver->configDir = g_strdup_printf("%s/storage", configdir);