projects
/
oweals
/
libubox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ustream: avoid calling s->poll from a write path to avoid looping back through the...
[oweals/libubox.git]
/
ustream.c
diff --git
a/ustream.c
b/ustream.c
index 37fbaf76d03111d05a352f4891d47d1f8b5d0741..9c6180657e1e0cd746c32ac90150a507d451b0e2 100644
(file)
--- 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;
}