From: Felix Fietkau Date: Sat, 5 Feb 2011 19:56:50 +0000 (+0100) Subject: remove an unnecessary check X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=32436bf25fc2d5088cc9d6fb0e469f740724383a;p=oweals%2Fubus.git remove an unnecessary check --- diff --git a/ubusd.c b/ubusd.c index a1636aa..bd437a5 100644 --- a/ubusd.c +++ b/ubusd.c @@ -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))