From: RĂ©mi Denis-Courmont Date: Sun, 5 Oct 2008 14:22:46 +0000 (+0300) Subject: Do not check for the same error twice (CID#147) X-Git-Tag: 1.0.0-pre1~2681 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=747e569007af4f30ccf147873a01dd30ea16f7de;p=vlc Do not check for the same error twice (CID#147) --- diff --git a/src/network/tcp.c b/src/network/tcp.c index fe27375941..814808d056 100644 --- a/src/network/tcp.c +++ b/src/network/tcp.c @@ -279,9 +279,6 @@ int __net_Accept( vlc_object_t *p_this, int *pi_fd, mtime_t i_wait ) int timeout = (i_wait < 0) ? -1 : i_wait / 1000; int evfd = vlc_object_waitpipe (p_this); - if (evfd == -1) - return -1; - assert( pi_fd != NULL ); for (;;)