summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: edcf39c)
raw | patch | inline | side by side (parent: edcf39c)
author | Florian Forster <octo@collectd.org> | |
Mon, 5 Jun 2017 05:33:36 +0000 (07:33 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Mon, 5 Jun 2017 05:33:36 +0000 (07:33 +0200) |
src/intel_rdt.c | patch | blob | history |
diff --git a/src/intel_rdt.c b/src/intel_rdt.c
index 7328836694dee755dbdeaa38c51413286dfa6c52..6f157b8ffc53cc3bfc5d368593fe64c82c536840 100644 (file)
--- a/src/intel_rdt.c
+++ b/src/intel_rdt.c
}
static int rdt_config(oconfig_item_t *ci) {
- int ret = 0;
-
- ret = rdt_preinit();
- if (ret != 0) {
+ if (rdt_preinit() != 0) {
g_state = CONFIGURATION_ERROR;
/* if we return -1 at this point collectd
reports a failure in configuration and
aborts
*/
- goto exit;
+ return (0);
}
for (int i = 0; i < ci->children_num; i++) {
oconfig_item_t *child = ci->children + i;
if (strcasecmp("Cores", child->key) == 0) {
-
- ret = rdt_config_cgroups(child);
- if (ret != 0) {
+ if (rdt_config_cgroups(child) != 0) {
g_state = CONFIGURATION_ERROR;
/* if we return -1 at this point collectd
reports a failure in configuration and
aborts
*/
- goto exit;
+ return (0);
}
#if COLLECT_DEBUG
rdt_dump_cgroups();
#endif /* COLLECT_DEBUG */
-
} else {
ERROR(RDT_PLUGIN ": Unknown configuration parameter \"%s\".", child->key);
}
}
-exit:
return (0);
}