mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
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
Block a user