From: Ruben Kerkhof Date: Sat, 23 Apr 2016 09:27:12 +0000 (+0200) Subject: memcached plugin: remove assignment with no effect X-Git-Tag: collectd-5.6.0~329^2~21 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3be5ea7beb5b217409eedac2cf48939e2a0c3cd3;p=collectd.git memcached plugin: remove assignment with no effect [src/memcached.c:176] -> [src/memcached.c:180]: (performance) Variable 'fd' is reassigned a value before the old one has been used. --- diff --git a/src/memcached.c b/src/memcached.c index 4e7b1431..62ac72a8 100644 --- a/src/memcached.c +++ b/src/memcached.c @@ -173,8 +173,7 @@ static int memcached_connect (memcached_t *st) static int memcached_query_daemon (char *buffer, size_t buffer_size, memcached_t *st) { - int fd = -1; - int status; + int fd, status; size_t buffer_fill; fd = memcached_connect (st);