remove an unnecessary check

This commit is contained in:
Felix Fietkau 2011-02-05 20:56:50 +01:00
parent a84c6cac9a
commit 32436bf25f

View file

@ -180,8 +180,6 @@ static void client_cb(struct uloop_fd *sock, unsigned int events)
}
break;
}
if (written == 0)
break;
cl->txq_ofs += written;
if (cl->txq_ofs < ub->len + sizeof(ub->hdr))