From: Andre Noll Date: Sun, 12 Aug 2007 21:36:51 +0000 (+0200) Subject: dccp_send.c: Simplify send_queued_chunks(). X-Git-Tag: v0.2.17~27 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=72ed0a92d2c9a76b3bd2b4e8f81b69e57280a79d dccp_send.c: Simplify send_queued_chunks(). The dccp socket is non-blocking, so there's no need to check for writability. --- diff --git a/dccp_send.c b/dccp_send.c index 2c8f800f..b5373e0e 100644 --- a/dccp_send.c +++ b/dccp_send.c @@ -163,9 +163,7 @@ static int send_queued_chunks(struct dccp_client *dc) while ((qc = cq_peek(dc->cq))) { char *buf; size_t len; - int ret = write_ok(dc->fd); - if (ret <= 0) - return ret? -E_WRITE_OK : 0; + int ret; cq_get(qc, &buf, &len); ret = dccp_write(dc->fd, buf, len); if (ret < 0)