pf plugin: value stored in fd is never read
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Wed, 27 Apr 2016 12:56:42 +0000 (14:56 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Wed, 27 Apr 2016 12:56:42 +0000 (14:56 +0200)
Found by scan-build:
pf.c:109:2: warning: Value stored to 'fd' is never read
        fd = -1;
        ^    ~~

src/pf.c

index a2bd549..225d536 100644 (file)
--- a/src/pf.c
+++ b/src/pf.c
@@ -106,7 +106,6 @@ static int pf_read (void)
        }
 
        close (fd);
-       fd = -1;
 
        if (!state.running)
        {