remove an unnecessary check
authorFelix Fietkau <nbd@openwrt.org>
Sat, 5 Feb 2011 19:56:50 +0000 (20:56 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 5 Feb 2011 19:56:50 +0000 (20:56 +0100)
ubusd.c

diff --git a/ubusd.c b/ubusd.c
index a1636aa..bd437a5 100644 (file)
--- 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))