mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00:00
network: 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:
parent
b311ae9e5b
commit
1fc8314d38
@ -741,8 +741,6 @@ networkStateInitialize(bool privileged,
|
||||
} else {
|
||||
configdir = virGetUserConfigDirectory();
|
||||
rundir = virGetUserRuntimeDirectory();
|
||||
if (!rundir)
|
||||
goto error;
|
||||
|
||||
network_driver->networkConfigDir = g_strdup_printf("%s/qemu/networks", configdir);
|
||||
network_driver->networkAutostartDir = g_strdup_printf("%s/qemu/networks/autostart", configdir);
|
||||
|
Loading…
x
Reference in New Issue
Block a user