hugepages plugin: Remove an unused variable.
authorFlorian Forster <octo@collectd.org>
Tue, 13 Sep 2016 05:25:54 +0000 (07:25 +0200)
committerFlorian Forster <octo@collectd.org>
Wed, 14 Sep 2016 18:38:52 +0000 (20:38 +0200)
src/hugepages.c

index 957eedb..8a2ad6a 100644 (file)
@@ -121,7 +121,6 @@ static void submit_hp(const struct entry_info *info) {
 static int read_hugepage_entry(const char *path, const char *entry,
                                void *e_info) {
   char path2[PATH_MAX];
-  char type_instance[PATH_MAX];
   struct entry_info *info = e_info;
   double value;
 
@@ -155,8 +154,6 @@ static int read_hugepage_entry(const char *path, const char *entry,
     return 0;
   }
 
-  ssnprintf(type_instance, sizeof(type_instance), "free_used-%zukB",
-            info->page_size_kb);
   submit_hp(info);
 
   /* Reset flags so subsequent calls don't submit again. */