From 6207bee80be427f101b357b0d71adb629442a628 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Thu, 19 Dec 2019 10:17:11 +0100 Subject: [PATCH] storage: Don't check the output of virGetUserRuntimeDirectory() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit virGetUserRuntimeDirectory() *never* *ever* returns NULL, making the checks for it completely unnecessary. Signed-off-by: Fabiano Fidêncio Reviewed-by: Ján Tomko --- src/storage/storage_driver.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/storage/storage_driver.c b/src/storage/storage_driver.c index 71078dfbd6..a33328db37 100644 --- a/src/storage/storage_driver.c +++ b/src/storage/storage_driver.c @@ -278,8 +278,6 @@ storageStateInitialize(bool privileged, } else { configdir = virGetUserConfigDirectory(); rundir = virGetUserRuntimeDirectory(); - if (!rundir) - goto error; driver->configDir = g_strdup_printf("%s/storage", configdir); driver->autostartDir = g_strdup_printf("%s/storage/autostart", configdir);