From: Felix Fietkau Date: Sat, 5 Feb 2011 19:56:50 +0000 (+0100) Subject: remove an unnecessary check X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fubus.git;a=commitdiff_plain;h=32436bf25fc2d5088cc9d6fb0e469f740724383a 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))