From: Florian Forster Date: Tue, 9 Jun 2015 17:21:13 +0000 (+0100) Subject: src/daemon/configfile.c: Remove unnecessary "continue" statements. X-Git-Tag: collectd-5.6.0~695 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=5b67c09d360b38efbdc002b58ae74f1b32240281;p=collectd.git src/daemon/configfile.c: Remove unnecessary "continue" statements. --- diff --git a/src/daemon/configfile.c b/src/daemon/configfile.c index dde16ca7..244124d0 100644 --- a/src/daemon/configfile.c +++ b/src/daemon/configfile.c @@ -296,24 +296,12 @@ static int dispatch_loadplugin (const oconfig_item_t *ci) if (strcasecmp("Globals", child->key) == 0) cf_util_get_flag (child, &flags, PLUGIN_FLAGS_GLOBAL); - else if (strcasecmp ("Interval", child->key) == 0) { - if (cf_util_get_cdtime (child, &ctx.interval) != 0) { - /* cf_util_get_cdtime will log an error */ - continue; - } - } - else if (strcasecmp ("FlushInterval", child->key) == 0) { - if (cf_util_get_cdtime (child, &ctx.flush_interval) != 0) { - /* cf_util_get_cdtime will log an error */ - continue; - } - } - else if (strcasecmp ("FlushTimeout", child->key) == 0) { - if (cf_util_get_cdtime (child, &ctx.flush_timeout) != 0) { - /* cf_util_get_cdtime will log an error */ - continue; - } - } + else if (strcasecmp ("Interval", child->key) == 0) + cf_util_get_cdtime (child, &ctx.interval); + else if (strcasecmp ("FlushInterval", child->key) == 0) + cf_util_get_cdtime (child, &ctx.flush_interval); + else if (strcasecmp ("FlushTimeout", child->key) == 0) + cf_util_get_cdtime (child, &ctx.flush_timeout); else { WARNING("Ignoring unknown LoadPlugin option \"%s\" " "for plugin \"%s\"",