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 a1636aa1847dbaf5c980d8f3616ad5c5526ab2d7..bd437a5af80dd50158a1e1d153c5b58966f64881 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))