[PATCH v3 05/13] conf: turn virCapabilitiesSetNetPrefix() to void

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



virCapabilitiesSetNetPrefix() always returns 0.

Signed-off-by: Dmitry Frolov <frolov@xxxxxxxxx>
---
 src/conf/capabilities.c        | 4 +---
 src/conf/capabilities.h        | 2 +-
 src/libxl/libxl_capabilities.c | 3 +--
 3 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/conf/capabilities.c b/src/conf/capabilities.c
index 096ccc18e7..f7e7610ce6 100644
--- a/src/conf/capabilities.c
+++ b/src/conf/capabilities.c
@@ -312,13 +312,11 @@ virCapabilitiesAddHostMigrateTransport(virCaps *caps,
  *
  * Registers the prefix that is used for generated network interfaces
  */
-int
+void
 virCapabilitiesSetNetPrefix(virCaps *caps,
                             const char *prefix)
 {
     caps->host.netprefix = g_strdup(prefix);
-
-    return 0;
 }
 
 
diff --git a/src/conf/capabilities.h b/src/conf/capabilities.h
index 085c0af868..d770cddd6b 100644
--- a/src/conf/capabilities.h
+++ b/src/conf/capabilities.h
@@ -244,7 +244,7 @@ int
 virCapabilitiesAddHostMigrateTransport(virCaps *caps,
                                        const char *name);
 
-int
+void
 virCapabilitiesSetNetPrefix(virCaps *caps,
                             const char *prefix);
 
diff --git a/src/libxl/libxl_capabilities.c b/src/libxl/libxl_capabilities.c
index 836f46341a..8853ba9d88 100644
--- a/src/libxl/libxl_capabilities.c
+++ b/src/libxl/libxl_capabilities.c
@@ -179,8 +179,7 @@ libxlCapsInitHost(libxl_ctx *ctx, virCaps *caps)
     if (libxlCapsInitCPU(caps, &phy_info) < 0)
         goto cleanup;
 
-    if (virCapabilitiesSetNetPrefix(caps, LIBXL_GENERATED_PREFIX_XEN) < 0)
-        goto cleanup;
+    virCapabilitiesSetNetPrefix(caps, LIBXL_GENERATED_PREFIX_XEN);
 
     ret = 0;
 
-- 
2.34.1
_______________________________________________
Devel mailing list -- devel@xxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxx




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux