virt plugin: Cleanup excessive check
authorPavel Rochnyack <pavel2000@ngs.ru>
Sun, 12 May 2019 06:56:05 +0000 (13:56 +0700)
committerPavel Rochnyack <pavel2000@ngs.ru>
Sun, 12 May 2019 09:20:36 +0000 (16:20 +0700)
That is already covered by check at upper level:

if (inst->id == 0 && persistent_notification)
  persistent_domains_state_notification();

src/virt.c

index 9d368af..ae3dc75 100644 (file)
@@ -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;
 }