[PATCH v4 13/19] libxl: change type to void libxlMakeDomainDeviceVideoCaps()

Dmitry Frolov posted 19 patches 1 year ago
[PATCH v4 13/19] libxl: change type to void libxlMakeDomainDeviceVideoCaps()
Posted by Dmitry Frolov 1 year ago
libxlMakeDomainDeviceVideoCaps() returns nothing except 0. Changing
return type to void.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

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

diff --git a/src/libxl/libxl_capabilities.c b/src/libxl/libxl_capabilities.c
index bef219a62d..2b0652b483 100644
--- a/src/libxl/libxl_capabilities.c
+++ b/src/libxl/libxl_capabilities.c
@@ -672,8 +672,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@lists.libvirt.org
To unsubscribe send an email to devel-leave@lists.libvirt.org