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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user