From: Ruben Kerkhof Date: Sat, 5 Dec 2015 14:02:43 +0000 (+0100) Subject: zookeeper plugin: remove dead code X-Git-Tag: collectd-5.5.1~26 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=154cdd973167f1c9b5aab33875fe47af6a0964a6;p=collectd.git zookeeper plugin: remove dead code status cannot be 0 inside the loop CID #37964 Signed-off-by: Florian Forster --- diff --git a/src/zookeeper.c b/src/zookeeper.c index 63ee6c90..5aa94e34 100644 --- a/src/zookeeper.c +++ b/src/zookeeper.c @@ -199,11 +199,6 @@ static int zookeeper_query (char *buffer, size_t buffer_size) } buffer_fill += (size_t) status; - if (status == 0) - { - /* done reading from the socket */ - break; - } } /* while (recv) */ status = 0;