From: Florian Forster Date: Tue, 13 Sep 2016 05:25:54 +0000 (+0200) Subject: hugepages plugin: Remove an unused variable. X-Git-Tag: collectd-5.7.0~88 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d191bd9ecabcc93fa52abf6ce59a914ca9fdca10;p=collectd.git hugepages plugin: Remove an unused variable. --- 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. */