mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-26 14:03:49 +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) {
|
if (ret < 0 && errno != EACCES) {
|
||||||
ret = -errno;
|
ret = -errno;
|
||||||
VIR_FORCE_CLOSE(pair[0]);
|
VIR_FORCE_CLOSE(pair[0]);
|
||||||
while ((waitret = waitpid(pid, NULL, 0) == -1)
|
while (waitpid(pid, NULL, 0) == -1 && errno == EINTR);
|
||||||
&& (errno == EINTR));
|
|
||||||
goto parenterror;
|
goto parenterror;
|
||||||
} else {
|
} else {
|
||||||
fd = ret;
|
fd = ret;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user