]> xenbits.xensource.com Git - libvirt.git/commitdiff
util: remove dead assignment
authorEric Blake <eblake@redhat.com>
Tue, 3 May 2011 20:27:40 +0000 (14:27 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 4 May 2011 15:25:07 +0000 (09:25 -0600)
Clang complained about this, and it was easy enough to fix.

* src/util/util.c (virFileOpenAs): Drop dead assignment.

src/util/util.c

index 37472bb8a55af9a30cba5acc7b68d2a02c970ab1..9041ab6dfc9d86f3f09f63512ca624070d2a7794 100644 (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;