ustream: remove unnecessary initialization

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
Felix Fietkau 2014-04-12 20:21:13 +02:00
parent 93a4cb92c1
commit c725f9f7a5

View file

@ -276,7 +276,7 @@ static bool ustream_prepare_buf(struct ustream *s, struct ustream_buf_list *l, i
char *ustream_reserve(struct ustream *s, int len, int *maxlen) char *ustream_reserve(struct ustream *s, int len, int *maxlen)
{ {
struct ustream_buf *buf = s->r.head; struct ustream_buf *buf;
if (!ustream_prepare_buf(s, &s->r, len)) { if (!ustream_prepare_buf(s, &s->r, len)) {
__ustream_set_read_blocked(s, s->read_blocked | READ_BLOCKED_FULL); __ustream_set_read_blocked(s, s->read_blocked | READ_BLOCKED_FULL);