treewide: Use AF_UNSPEC consistently
[collectd.git] / src / interface.c
index 4458b5b..5488322 100644 (file)
@@ -85,7 +85,6 @@ static const char *config_keys[] =
        "Interface",
        "IgnoreSelected",
        "ReportInactive",
-       NULL
 };
 static int config_keys_num = STATIC_ARRAY_SIZE (config_keys);
 
@@ -140,7 +139,6 @@ static int interface_config (const char *key, const char *value)
 static int interface_init (void)
 {
        kstat_t *ksp_chain;
-       derive_t val;
 
        numif = 0;
 
@@ -157,7 +155,7 @@ static int interface_init (void)
                        continue;
                if (kstat_read (kc, ksp_chain, NULL) == -1)
                        continue;
-               if ((val = get_kstat_value (ksp_chain, "obytes")) == -1LL)
+               if (get_kstat_value (ksp_chain, "obytes") == -1LL)
                        continue;
                ksp[numif++] = ksp_chain;
        }