virGetUserRuntimeDirectory() *never* *ever* returns NULL, making the
checks for it completely unnecessary.
Signed-off-by: Fabiano FidĂȘncio <fidencio(a)redhat.com>
---
src/network/bridge_driver.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/network/bridge_driver.c b/src/network/bridge_driver.c
index 98aa530715..c9c45df758 100644
--- a/src/network/bridge_driver.c
+++ b/src/network/bridge_driver.c
@@ -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);
--
2.24.1