From: Ruben Kerkhof Date: Wed, 27 Apr 2016 12:56:42 +0000 (+0200) Subject: pf plugin: value stored in fd is never read X-Git-Tag: collectd-5.6.0~312 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8c5f8d1cac0eb665ced8b334d712a7443f5c7d55;p=collectd.git pf plugin: value stored in fd is never read Found by scan-build: pf.c:109:2: warning: Value stored to 'fd' is never read fd = -1; ^ ~~ --- diff --git a/src/pf.c b/src/pf.c index a2bd5499..225d536e 100644 --- a/src/pf.c +++ b/src/pf.c @@ -106,7 +106,6 @@ static int pf_read (void) } close (fd); - fd = -1; if (!state.running) {