[PATCH v3 09/13] libxl: turn libxlMakeDomainDeviceVideoCaps() to void

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

 



libxlMakeDomainDeviceVideoCaps() always returns 0.

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

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