From: Florian Forster Date: Thu, 18 Jun 2015 07:16:18 +0000 (+0200) Subject: modbus plugin: Fix "Dead assignment" warning. X-Git-Tag: collectd-5.5.1~101^2~11 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0370beb780e7d0b86ac26e32c50b6ecb0cd09a02;p=collectd.git modbus plugin: Fix "Dead assignment" warning. --- diff --git a/src/modbus.c b/src/modbus.c index 887c63c0..df169825 100644 --- a/src/modbus.c +++ b/src/modbus.c @@ -414,7 +414,6 @@ static int mb_read_data (mb_host_t *host, mb_slave_t *slave, /* {{{ */ else values_num = 1; - status = 0; if (host->connection == NULL) { status = EBADF; @@ -677,7 +676,6 @@ static int mb_config_add_data (oconfig_item_t *ci) /* {{{ */ for (i = 0; i < ci->children_num; i++) { oconfig_item_t *child = ci->children + i; - status = 0; if (strcasecmp ("Type", child->key) == 0) status = cf_util_get_string_buffer (child, @@ -816,7 +814,6 @@ static int mb_config_add_slave (mb_host_t *host, oconfig_item_t *ci) /* {{{ */ for (i = 0; i < ci->children_num; i++) { oconfig_item_t *child = ci->children + i; - status = 0; if (strcasecmp ("Instance", child->key) == 0) status = cf_util_get_string_buffer (child,