提交 44aa49ae 编写于 作者: E Eric Blake

util: remove dead assignment

Clang complained about this, and it was easy enough to fix.

* src/util/util.c (virFileOpenAs): Drop dead assignment.
上级 32388f12
......@@ -1523,8 +1523,7 @@ virFileOpenAs(const char *path, int openflags, mode_t mode,
if (ret < 0 && errno != EACCES) {
ret = -errno;
VIR_FORCE_CLOSE(pair[0]);
while ((waitret = waitpid(pid, NULL, 0) == -1)
&& (errno == EINTR));
while (waitpid(pid, NULL, 0) == -1 && errno == EINTR);
goto parenterror;
} else {
fd = ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册