storage: Don't check the output of virGetUserRuntimeDirectory()

virGetUserRuntimeDirectory() *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 10:17:11 +01:00
parent da3b2509bd
commit 6207bee80b

View File

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