From d191bd9ecabcc93fa52abf6ce59a914ca9fdca10 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 13 Sep 2016 07:25:54 +0200 Subject: [PATCH] hugepages plugin: Remove an unused variable. --- src/hugepages.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/hugepages.c b/src/hugepages.c index 957eedb0..8a2ad6a0 100644 --- a/src/hugepages.c +++ b/src/hugepages.c @@ -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. */ -- 2.30.2