[PATCH v3 08/13] libxl: turn libxlMakeDomainDeviceGraphicsCaps() to void

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

 



libxlMakeDomainDeviceGraphicsCaps() always returns 0.

Signed-off-by: Dmitry Frolov <frolov@xxxxxxxxx>
---
 src/libxl/libxl_capabilities.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/libxl/libxl_capabilities.c b/src/libxl/libxl_capabilities.c
index 7663790649..9b219adb3c 100644
--- a/src/libxl/libxl_capabilities.c
+++ b/src/libxl/libxl_capabilities.c
@@ -561,7 +561,7 @@ libxlMakeDomainDeviceDiskCaps(virDomainCapsDeviceDisk *dev)
 
 }
 
-static int
+static void
 libxlMakeDomainDeviceGraphicsCaps(virDomainCapsDeviceGraphics *dev)
 {
     dev->supported = VIR_TRISTATE_BOOL_YES;
@@ -572,7 +572,6 @@ libxlMakeDomainDeviceGraphicsCaps(virDomainCapsDeviceGraphics *dev)
                              VIR_DOMAIN_GRAPHICS_TYPE_VNC,
                              VIR_DOMAIN_GRAPHICS_TYPE_SPICE);
 
-    return 0;
 }
 
 static int
@@ -676,8 +675,8 @@ libxlMakeDomainCapabilities(virDomainCaps *domCaps,
 
     libxlMakeDomainOSCaps(domCaps->machine, os, firmwares, nfirmwares);
     libxlMakeDomainDeviceDiskCaps(disk);
-    if (libxlMakeDomainDeviceGraphicsCaps(graphics) < 0 ||
-        libxlMakeDomainDeviceVideoCaps(video) < 0)
+    libxlMakeDomainDeviceGraphicsCaps(graphics);
+    if (libxlMakeDomainDeviceVideoCaps(video) < 0)
         return -1;
     if (STRNEQ(domCaps->machine, "xenpvh") &&
         libxlMakeDomainDeviceHostdevCaps(hostdev) < 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