X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fstatsd.c;h=444e8ea119c2b6ff2087f0eeabcb46eba66861f8;hb=015bbda11c6760d2ce5d35fa3ad0896dddbcd8c1;hp=28ee337cfb089154c18948ef4f5a482ed8fa8405;hpb=3f4d0cbd79ca46e1b98edb10ddee3a723d69a6bb;p=collectd.git diff --git a/src/statsd.c b/src/statsd.c index 28ee337c..444e8ea1 100644 --- a/src/statsd.c +++ b/src/statsd.c @@ -352,9 +352,8 @@ static int statsd_handle_set(char const *name, /* {{{ */ status = c_avl_insert(metric->set, set_key, /* value = */ NULL); if (status < 0) { pthread_mutex_unlock(&metrics_lock); - if (status < 0) - ERROR("statsd plugin: c_avl_insert (\"%s\") failed with status %i.", - set_key, status); + ERROR("statsd plugin: c_avl_insert (\"%s\") failed with status %i.", + set_key, status); sfree(set_key); return -1; } else if (status > 0) /* key already exists */