]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virNetworkObjNew: Remove impossible error handling
authorPeter Krempa <pkrempa@redhat.com>
Fri, 23 Jul 2021 08:46:40 +0000 (10:46 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 26 Jul 2021 11:27:30 +0000 (13:27 +0200)
commit1318e54bfc236ef171abc2ed65c2ccf85a394547
tree246ec43570e61357257c2d2cab170b5795819c4d
parenta3c30eea3f23c5a34b14a3e6b19d17fbfa67a74f
virNetworkObjNew: Remove impossible error handling

'obj->classIdMap' is a bitmap with size of '16', thus the first 3 bits
are guaranteed to be available. Use 'virBitmapSetBit' instead of
'virBitmapSetBitExpand' since we don't need any expansion and ignore
errors as they are impossible.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Tim Wiederhake <twiederh@redhat.com>
src/conf/virnetworkobj.c