From: Pavel Rochnyack Date: Sun, 12 May 2019 06:56:05 +0000 (+0700) Subject: virt plugin: Cleanup excessive check X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=c5d528d244855464d6a6abca99682c5ed18ae64c;p=collectd.git virt plugin: Cleanup excessive check That is already covered by check at upper level: if (inst->id == 0 && persistent_notification) persistent_domains_state_notification(); --- diff --git a/src/virt.c b/src/virt.c index 9d368af6..ae3dc755 100644 --- a/src/virt.c +++ b/src/virt.c @@ -1668,8 +1668,7 @@ static int get_domain_state_notify(virDomainPtr domain) { return status; } - if (persistent_notification) - domain_state_submit_notif(domain, domain_state, domain_reason); + domain_state_submit_notif(domain, domain_state, domain_reason); return status; }