]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virCHDomainRefreshThreadInfo: Remove illusion that caller cares about return value
authorPeter Krempa <pkrempa@redhat.com>
Thu, 31 Jul 2025 13:31:59 +0000 (15:31 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 6 Aug 2025 13:51:25 +0000 (15:51 +0200)
The caller doesn't check the return value. Remove it to avoid confusing
readers.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/ch/ch_domain.c
src/ch/ch_domain.h

index 85bd99e1e972ad9485e82ad1fc0a19d2d86d9b72..6ace9eafbf65df2243a8bf5a894cfbeed671ede3 100644 (file)
@@ -254,7 +254,7 @@ chValidateDomainDeviceDef(const virDomainDeviceDef *dev,
     return 0;
 }
 
-int
+void
 virCHDomainRefreshThreadInfo(virDomainObj *vm)
 {
     unsigned int maxvcpus = virDomainDefGetVcpusMax(vm->def);
@@ -291,8 +291,6 @@ virCHDomainRefreshThreadInfo(virDomainObj *vm)
     if (ncpus != maxvcpus)
         VIR_WARN("Mismatch in the number of cpus, expected: %u, actual: %zu",
                  maxvcpus, ncpus);
-
-    return 0;
 }
 
 virDomainDefParserConfig virCHDriverDomainDefParserConfig = {
index 69a657f6af6f9476b12ba866ea0afb0b3d082695..4532fe9ce00ae2d5071aa2693971b9e5fd61a2eb 100644 (file)
@@ -62,7 +62,7 @@ void
 virCHDomainRemoveInactive(virCHDriver *driver,
                           virDomainObj *vm);
 
-int
+void
 virCHDomainRefreshThreadInfo(virDomainObj *vm);
 
 pid_t