[libvirt] [PATCH 3/4] remove the redundant codes