From: Ján Tomko Date: Tue, 12 Feb 2019 10:52:59 +0000 (+0100) Subject: virsh: remove redundant virshNodeGetCPUCount X-Git-Tag: v5.1.0-rc1~102 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c44c9f45600f093f2f61eb9a1f6f23a88141157;p=thirdparty%2Flibvirt.git virsh: remove redundant virshNodeGetCPUCount Since commit 4c4b821e it is not used for anything. Signed-off-by: Ján Tomko Reviewed-by: John Ferlan --- diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index de19f5b6fe..d9458a3d31 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;