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 0b49290..6d00a4f 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",
--
2.5.0