提交 b76d9366 编写于 作者: A Andrea Bolognani

tests: pcimock: Remove check for fakesysfsdir

init_env() will return right away if fakesysfsdir is already
initialized, so this check is redundant.
上级 8e3122fa
......@@ -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",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册