Signed-off-by: Tim Wiederhake <twiederh(a)redhat.com>
---
src/libxl/libxl_logger.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/libxl/libxl_logger.c b/src/libxl/libxl_logger.c
index 0807383d39..f7b5c8ee16 100644
--- a/src/libxl/libxl_logger.c
+++ b/src/libxl/libxl_logger.c
@@ -149,9 +149,7 @@ libxlLoggerNew(const char *logDir, virLogPriority minLevel)
break;
}
logger.logDir = logDir;
-
- if ((logger.files = virHashNew(libxlLoggerFileFree)) == NULL)
- return NULL;
+ logger.files = virHashNew(libxlLoggerFileFree);
path = g_strdup_printf("%s/libxl-driver.log", logDir);
--
2.31.1