summaryrefslogtreecommitdiff
path: root/src/util/virqemu.c
diff options
context:
space:
mode:
authorPeter Krempa <pkrempa@redhat.com>2021-12-06 15:55:46 +0100
committerPeter Krempa <pkrempa@redhat.com>2021-12-10 16:36:25 +0100
commitf3af9e36fb3f050218d2352876b59e2e0300e79e (patch)
tree7385f1e0710bec25e5714a61184d2b6b44e25918 /src/util/virqemu.c
parent7d48c3d2d6344d0ab49199a0764c31e6d94a6dc4 (diff)
downloadlibvirt-f3af9e36fb3f050218d2352876b59e2e0300e79e.tar.gz
virBitmapSetBitExpand: Remove return value
The function can't fail at this point. Remove the return value. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
Diffstat (limited to 'src/util/virqemu.c')
-rw-r--r--src/util/virqemu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/util/virqemu.c b/src/util/virqemu.c
index aef6006dd7..8ff61b22b0 100644
--- a/src/util/virqemu.c
+++ b/src/util/virqemu.c
@@ -70,8 +70,7 @@ virQEMUBuildCommandLineJSONArrayBitmap(const char *key,
if (virJSONValueGetNumberUlong(member, &value) < 0)
return -1;
- if (virBitmapSetBitExpand(bitmap, value) < 0)
- return -1;
+ virBitmapSetBitExpand(bitmap, value);
}
while ((pos = virBitmapNextSetBit(bitmap, pos)) > -1) {