mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
virsh: remove redundant virshNodeGetCPUCount
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>
This commit is contained in:
parent
4834c9a4bd
commit
4c44c9f456
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user