[libvirt] [PATCH] remove redundant code