From b76d9366705d8ce605f3dc1bcebce388999c75ac Mon Sep 17 00:00:00 2001 From: Andrea Bolognani Date: Thu, 3 Dec 2015 15:27:28 +0100 Subject: [PATCH] tests: pcimock: Remove check for fakesysfsdir init_env() will return right away if fakesysfsdir is already initialized, so this check is redundant. --- tests/virpcimock.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/virpcimock.c b/tests/virpcimock.c index 0b49290737..6d00a4fd65 100644 --- a/tests/virpcimock.c +++ b/tests/virpcimock.c @@ -229,8 +229,7 @@ static int getrealpath(char **newpath, const char *path) { - if (!fakesysfsdir) - init_env(); + init_env(); if (STRPREFIX(path, PCI_SYSFS_PREFIX)) { if (virAsprintfQuiet(newpath, "%s/%s", -- GitLab