summaryrefslogtreecommitdiff
path: root/socket
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2014-08-14 18:06:43 +0100
committerPhilip Withnall <philip.withnall@collabora.co.uk>2014-08-14 18:06:43 +0100
commitf06c0cb35ee8ef42d20b9b312f04d5e60ea93741 (patch)
tree32854a3aea48a00d93ac805c4c03e911a0f887b5 /socket
parent38351e4a86bc18191198564de7731d6f51e7b787 (diff)
socket: Remove dead code
At that point, (len > 0), since there are conditions above handling the (len == 0) and (len < 0) cases, both of which break from the loop. Coverity issue: #29325
Diffstat (limited to 'socket')
-rw-r--r--socket/tcp-bsd.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/socket/tcp-bsd.c b/socket/tcp-bsd.c
index 2cfca53..5726e8f 100644
--- a/socket/tcp-bsd.c
+++ b/socket/tcp-bsd.c
@@ -261,9 +261,6 @@ socket_recv_messages (NiceSocket *sock,
if (recv_messages[i].from)
*recv_messages[i].from = priv->remote_addr;
-
- if (len <= 0)
- break;
}
/* Was there an error processing the first message? */