tests: pcimock: Remove check for fakesysfsdir

init_env() will return right away if fakesysfsdir is already
initialized, so this check is redundant.
This commit is contained in:
Andrea Bolognani 2015-12-03 15:27:28 +01:00
parent 8e3122faf5
commit b76d936670

View File

@ -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",