[libvirt] [PATCHv2 03/11] conf: code cleanup for return error code directly