Merge pull request #1829 from rubenk/clang-format
[collectd.git] / src / pf.c
index a2bd549..c9aeb5f 100644 (file)
--- a/src/pf.c
+++ b/src/pf.c
@@ -94,7 +94,6 @@ static int pf_read (void)
                return (-1);
        }
 
-       memset (&state, 0, sizeof (state));
        status = ioctl (fd, DIOCGETSTATUS, &state);
        if (status != 0)
        {
@@ -106,7 +105,6 @@ static int pf_read (void)
        }
 
        close (fd);
-       fd = -1;
 
        if (!state.running)
        {