mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06: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,
|
getrealpath(char **newpath,
|
||||||
const char *path)
|
const char *path)
|
||||||
{
|
{
|
||||||
if (!fakesysfsdir)
|
init_env();
|
||||||
init_env();
|
|
||||||
|
|
||||||
if (STRPREFIX(path, PCI_SYSFS_PREFIX)) {
|
if (STRPREFIX(path, PCI_SYSFS_PREFIX)) {
|
||||||
if (virAsprintfQuiet(newpath, "%s/%s",
|
if (virAsprintfQuiet(newpath, "%s/%s",
|
||||||
|
Loading…
Reference in New Issue
Block a user