network: 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 10:27:05 +01:00
parent c1a1c75952
commit 70c2052011

View File

@ -741,7 +741,7 @@ networkStateInitialize(bool privileged,
} else { } else {
configdir = virGetUserConfigDirectory(); configdir = virGetUserConfigDirectory();
rundir = virGetUserRuntimeDirectory(); rundir = virGetUserRuntimeDirectory();
if (!(configdir && rundir)) if (!rundir)
goto error; goto error;
network_driver->networkConfigDir = g_strdup_printf("%s/qemu/networks", configdir); network_driver->networkConfigDir = g_strdup_printf("%s/qemu/networks", configdir);