From: Florian Forster Date: Thu, 18 Jun 2015 07:16:18 +0000 (+0200) Subject: snmp plugin: Fix "Dead assignment" warning. X-Git-Tag: collectd-5.5.1~101^2~4 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c308353ba986771cbd94cc2b4c598d34c8cd4c4e;p=collectd.git snmp plugin: Fix "Dead assignment" warning. --- diff --git a/src/snmp.c b/src/snmp.c index 362f175c..3dd08e4a 100644 --- a/src/snmp.c +++ b/src/snmp.c @@ -402,7 +402,6 @@ static int csnmp_config_add_data (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 = csnmp_config_add_data_type (dd, option);