[libvirt] [PATCH] Drop some useless comparisons and checks