From: Eric Blake Date: Tue, 3 May 2011 20:27:40 +0000 (-0600) Subject: util: remove dead assignment X-Git-Tag: v0.9.1~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44aa49aefe6ce2d74e1776cee4e071b485f51297;p=thirdparty%2Flibvirt.git util: remove dead assignment Clang complained about this, and it was easy enough to fix. * src/util/util.c (virFileOpenAs): Drop dead assignment. --- diff --git a/src/util/util.c b/src/util/util.c index 37472bb8a5..9041ab6dfc 100644 --- a/src/util/util.c +++ b/src/util/util.c @@ -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;