From 0370beb780e7d0b86ac26e32c50b6ecb0cd09a02 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Thu, 18 Jun 2015 09:16:18 +0200 Subject: [PATCH] modbus plugin: Fix "Dead assignment" warning. --- src/modbus.c | 3 --- 1 file changed, 3 deletions(-) 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, -- 2.30.2