X-Git-Url: http://git.archive.openwrt.org/?p=project%2Flibubox.git;a=blobdiff_plain;f=ustream.c;h=9c6180657e1e0cd746c32ac90150a507d451b0e2;hp=37fbaf76d03111d05a352f4891d47d1f8b5d0741;hb=29c066cfd60cc9101201a2c31a9aa66288288719;hpb=300a809a7a6b30595962308c4215ead6ec361053 diff --git a/ustream.c b/ustream.c index 37fbaf7..9c61806 100644 --- a/ustream.c +++ b/ustream.c @@ -379,7 +379,6 @@ static int ustream_write_buffered(struct ustream *s, const char *data, int len, struct ustream_buf_list *l = &s->w; struct ustream_buf *buf; int maxlen; - bool has_data = !!s->w.data_bytes; while (len) { if (!ustream_prepare_buf(s, &s->w, len)) @@ -399,9 +398,6 @@ static int ustream_write_buffered(struct ustream *s, const char *data, int len, l->data_bytes += maxlen; } - if (s->poll && !has_data) - s->poll(s); - return wr; }