Since commit 4c4b821e it is not used for anything.

Signed-off-by: Ján Tomko <jto...@redhat.com>
---
 tools/virsh-domain.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c
index 17dd992751..516b647401 100644
--- a/tools/virsh-domain.c
+++ b/tools/virsh-domain.c
@@ -7534,9 +7534,7 @@ cmdIOThreadInfo(vshControl *ctl, const vshCmd *cmd)
     size_t niothreads = 0;
     virDomainIOThreadInfoPtr *info;
     size_t i;
-    int maxcpu;
     unsigned int flags = VIR_DOMAIN_AFFECT_CURRENT;
-    virshControlPtr priv = ctl->privData;
     vshTablePtr table = NULL;
     bool ret = false;
     int rc;
@@ -7552,9 +7550,6 @@ cmdIOThreadInfo(vshControl *ctl, const vshCmd *cmd)
     if (!(dom = virshCommandOptDomain(ctl, cmd, NULL)))
         return false;
 
-    if ((maxcpu = virshNodeGetCPUCount(priv->conn)) < 0)
-        goto cleanup;
-
     if ((rc = virDomainGetIOThreadInfo(dom, &info, flags)) < 0) {
         vshError(ctl, _("Unable to get domain IOThreads information"));
         goto cleanup;
-- 
2.19.2

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to