[vlc-devel] commit: Do not check for the same error twice (CID#147) ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Oct 5 16:23:00 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Oct  5 17:22:46 2008 +0300| [747e569007af4f30ccf147873a01dd30ea16f7de] | committer: Rémi Denis-Courmont 

Do not check for the same error twice (CID#147)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=747e569007af4f30ccf147873a01dd30ea16f7de
---

 src/network/tcp.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/src/network/tcp.c b/src/network/tcp.c
index fe27375..814808d 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 (;;)




More information about the vlc-devel mailing list