]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virsh: remove redundant virshNodeGetCPUCount
authorJán Tomko <jtomko@redhat.com>
Tue, 12 Feb 2019 10:52:59 +0000 (11:52 +0100)
committerJán Tomko <jtomko@redhat.com>
Wed, 13 Feb 2019 12:58:55 +0000 (13:58 +0100)
Since commit 4c4b821e it is not used for anything.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
tools/virsh-domain.c

index de19f5b6fe63982fa0cd42bffe31c64916039aa7..d9458a3d3180bdb186f46e578187fb2735b466de 100644 (file)
@@ -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;