]> git.sesse.net Git - vlc/commitdiff
udp: restore original flow without else block
authorIlkka Ollakka <ileoo@videolan.org>
Wed, 1 Oct 2014 04:40:50 +0000 (07:40 +0300)
committerIlkka Ollakka <ileoo@videolan.org>
Wed, 1 Oct 2014 04:44:22 +0000 (07:44 +0300)
commit 7fff679f1494dbc7475a6010d45bd335f959c912 added else block and
left continue that didn't make code flow following any easier.

modules/access/udp.c

index 6917ee45f0d7ba7fb02cc5bc9d8f8561fc17e4d9..5a4168f2898758dbd35323630e93dd97f36ee009 100644 (file)
@@ -264,10 +264,10 @@ static void* ThreadRead( void *data )
             if( errno == EINTR )
                 break;
             continue;
-        } else {
-            pkt->i_buffer = len;
-            block_FifoPut( sys->fifo, pkt );
         }
+
+        pkt->i_buffer = len;
+        block_FifoPut( sys->fifo, pkt );
     }
 
     block_FifoWake( sys->fifo );