snmp plugin: remove statement with no effect
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 09:08:56 +0000 (11:08 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 09:08:56 +0000 (11:08 +0200)
res has local scope, and we return immediately after.

src/snmp.c

index 0e2af3b..31beee0 100644 (file)
@@ -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);