From 32436bf25fc2d5088cc9d6fb0e469f740724383a Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 5 Feb 2011 20:56:50 +0100 Subject: [PATCH] remove an unnecessary check --- ubusd.c | 2 -- 1 file changed, 2 deletions(-) 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))