[vlc-commits] http: remove dead code

Rémi Denis-Courmont git at videolan.org
Thu Dec 31 17:42:57 CET 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Dec 31 18:30:43 2015 +0200| [70b37557021a7169f88cda4e959a4e73d2d4104d] | committer: Rémi Denis-Courmont

http: remove dead code

(i_read is always zero)

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

 modules/access/http.c |    8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/modules/access/http.c b/modules/access/http.c
index e27a986..42e7df7 100644
--- a/modules/access/http.c
+++ b/modules/access/http.c
@@ -623,13 +623,7 @@ static ssize_t Read( access_t *p_access, uint8_t *p_buffer, size_t i_len )
             else
                 return -1;
         }
-
-        if( i_read <= 0 )
-        {
-            if( i_read < 0 )
-                p_sys->b_error = true;
-            goto fatal;
-        }
+        goto fatal;
     }
 
     assert( i_read >= 0 );



More information about the vlc-commits mailing list