From: Ruben Kerkhof Date: Sat, 23 Apr 2016 09:00:31 +0000 (+0200) Subject: threshold.c: remove assignment with no effect. X-Git-Tag: collectd-5.6.0~329^2~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f41db51b22f3505304962ebc8f05806ab685690;p=thirdparty%2Fcollectd.git threshold.c: remove assignment with no effect. [src/threshold.c:81] -> [src/threshold.c:87]: (performance) Variable 'th_ptr' is reassigned a value before the old one has been used. --- diff --git a/src/threshold.c b/src/threshold.c index 624ab7a91..e849b1d8b 100644 --- a/src/threshold.c +++ b/src/threshold.c @@ -78,7 +78,6 @@ static int ut_threshold_add (const threshold_t *th) return (-1); } memcpy (th_copy, th, sizeof (threshold_t)); - th_ptr = NULL; DEBUG ("ut_threshold_add: Adding entry `%s'", name);