From: Florian Forster Date: Thu, 18 Jun 2015 07:16:18 +0000 (+0200) Subject: src/libcollectdclient/client.c: Fix "Dead assignment" warning. X-Git-Tag: collectd-5.5.1~101^2~12 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=ef510f3618822f59a65d1a730f6c67d67632de88;p=collectd.git src/libcollectdclient/client.c: Fix "Dead assignment" warning. --- diff --git a/src/libcollectdclient/client.c b/src/libcollectdclient/client.c index 49a4d879..5db98e58 100644 --- a/src/libcollectdclient/client.c +++ b/src/libcollectdclient/client.c @@ -500,7 +500,6 @@ static int lcc_open_netsocket (lcc_connection_t *c, /* {{{ */ if (fd < 0) { status = errno; - fd = -1; continue; } @@ -509,7 +508,6 @@ static int lcc_open_netsocket (lcc_connection_t *c, /* {{{ */ { status = errno; close (fd); - fd = -1; continue; } @@ -518,7 +516,6 @@ static int lcc_open_netsocket (lcc_connection_t *c, /* {{{ */ { status = errno; close (fd); - fd = -1; continue; }