From: Ruben Kerkhof Date: Sat, 23 Apr 2016 09:08:56 +0000 (+0200) Subject: snmp plugin: remove statement with no effect X-Git-Tag: collectd-5.6.0~329^2~26 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=47ecc563839b54a3ad188899a88a951eab67fef5;p=collectd.git snmp plugin: remove statement with no effect res has local scope, and we return immediately after. --- diff --git a/src/snmp.c b/src/snmp.c index 0e2af3be..31beee05 100644 --- a/src/snmp.c +++ b/src/snmp.c @@ -1748,7 +1748,6 @@ static int csnmp_read_value (host_definition_t *host, data_definition_t *data) if (res != NULL) snmp_free_pdu (res); - res = NULL; sfree (errstr); sfree (vl.values);