mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 09:17:52 +03:00
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:
parent
32388f12d5
commit
44aa49aefe
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user