From ef510f3618822f59a65d1a730f6c67d67632de88 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Thu, 18 Jun 2015 09:16:18 +0200 Subject: [PATCH] src/libcollectdclient/client.c: Fix "Dead assignment" warning. --- src/libcollectdclient/client.c | 3 --- 1 file changed, 3 deletions(-) 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; } -- 2.30.2