@cryptotaxi247 / netdata-1 / commits / e853a66e5

eliminated redundant check identified by coverity

Costa Tsaousis (ktsaou) committed Sep 16, 2016 at 00:38 UTC e853a66e5fb95abb5358e8500deb45e7a70856eb
1 file changed +1 -1
src/health.c
+1 -1
@@ -834,7 +834,7 @@ void rrdcalc_free(RRDHOST *host, RRDCALC *rc) {
834 else if(likely(host->alarms)) {
835 RRDCALC *t, *last = host->alarms;
836 for(t = last->next; t && t != rc; last = t, t = t->next) ;
837 - if(last && last->next == rc)
837 + if(last->next == rc)
838 last->next = rc->next;
839 else
840 error("Cannot unlink alarm '%s.%s' from host '%s': not found", rc->chart?rc->chart:"NOCHART", rc->name, host->hostname);