remove an unnecessary check
This commit is contained in:
parent
a84c6cac9a
commit
32436bf25f
1 changed files with 0 additions and 2 deletions
2
ubusd.c
2
ubusd.c
|
@ -180,8 +180,6 @@ static void client_cb(struct uloop_fd *sock, unsigned int events)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (written == 0)
|
|
||||||
break;
|
|
||||||
|
|
||||||
cl->txq_ofs += written;
|
cl->txq_ofs += written;
|
||||||
if (cl->txq_ofs < ub->len + sizeof(ub->hdr))
|
if (cl->txq_ofs < ub->len + sizeof(ub->hdr))
|
||||||
|
|
Loading…
Reference in a new issue