From d09ec85d1584a7a0649a240b78f1390ff1296814 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Thu, 18 Jun 2015 09:16:18 +0200 Subject: [PATCH] threshold plugin: Fix "Dead assignment" warning. --- src/threshold.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/threshold.c b/src/threshold.c index 887dbca3..591e2dd6 100644 --- a/src/threshold.c +++ b/src/threshold.c @@ -361,7 +361,6 @@ static int ut_config_type (const threshold_t *th_orig, oconfig_item_t *ci) for (i = 0; i < ci->children_num; i++) { oconfig_item_t *option = ci->children + i; - status = 0; if (strcasecmp ("Instance", option->key) == 0) status = ut_config_type_instance (&th, option); @@ -449,7 +448,6 @@ static int ut_config_plugin (const threshold_t *th_orig, oconfig_item_t *ci) for (i = 0; i < ci->children_num; i++) { oconfig_item_t *option = ci->children + i; - status = 0; if (strcasecmp ("Type", option->key) == 0) status = ut_config_type (&th, option); @@ -496,7 +494,6 @@ static int ut_config_host (const threshold_t *th_orig, oconfig_item_t *ci) for (i = 0; i < ci->children_num; i++) { oconfig_item_t *option = ci->children + i; - status = 0; if (strcasecmp ("Type", option->key) == 0) status = ut_config_type (&th, option); @@ -997,7 +994,6 @@ int ut_config (oconfig_item_t *ci) for (i = 0; i < ci->children_num; i++) { oconfig_item_t *option = ci->children + i; - status = 0; if (strcasecmp ("Type", option->key) == 0) status = ut_config_type (&th, option); -- 2.11.0