mirror of https://gitee.com/openkylin/libvirt.git
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:
parent
8e3122faf5
commit
b76d936670
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue