]> xenbits.xensource.com Git - libvirt.git/commitdiff
vircommand: Remove unnecessary sa_assert
authorJohn Ferlan <jferlan@redhat.com>
Fri, 15 Feb 2013 14:31:24 +0000 (09:31 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Sat, 16 Feb 2013 12:44:35 +0000 (07:44 -0500)
Changes from commit '3178df9a' removed the need for the sa_assert(infd).

src/util/vircommand.c

index ee1b510e0076fc30070678118067194f797325c5..f672101f2252fc6770581862babda18d76506642 100644 (file)
@@ -1899,9 +1899,6 @@ virCommandProcessIO(virCommandPtr cmd)
                 fds[i].fd == cmd->inpipe) {
                 int done;
 
-                /* Coverity 5.3.0 can't see that we only get here if
-                 * infd is in the set because it was non-negative.  */
-                sa_assert(infd != -1);
                 done = write(cmd->inpipe, cmd->inbuf + inoff,
                              inlen - inoff);
                 if (done < 0) {