util: remove dead assignment

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

* src/util/util.c (virFileOpenAs): Drop dead assignment.
This commit is contained in:
Eric Blake 2011-05-03 14:27:40 -06:00
parent 32388f12d5
commit 44aa49aefe

View File

@ -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;