From: Florian Forster Date: Thu, 18 Jun 2015 07:16:18 +0000 (+0200) Subject: src/daemon/filter_chain.c: Fix "Dead assignment" warning. X-Git-Tag: collectd-5.5.1~101^2~15 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=82f9325762d2d7ca63d1d3560bf8b5dc850e9214;p=collectd.git src/daemon/filter_chain.c: Fix "Dead assignment" warning. --- diff --git a/src/filter_chain.c b/src/filter_chain.c index 5ad9655c..c9be097a 100644 --- a/src/filter_chain.c +++ b/src/filter_chain.c @@ -387,7 +387,6 @@ static int fc_config_add_rule (fc_chain_t *chain, /* {{{ */ for (i = 0; i < ci->children_num; i++) { oconfig_item_t *option = ci->children + i; - status = 0; if (strcasecmp ("Match", option->key) == 0) status = fc_config_add_match (&rule->matches, option); @@ -471,7 +470,6 @@ static int fc_config_add_chain (const oconfig_item_t *ci) /* {{{ */ for (i = 0; i < ci->children_num; i++) { oconfig_item_t *option = ci->children + i; - status = 0; if (strcasecmp ("Rule", option->key) == 0) status = fc_config_add_rule (chain, option);