[libvirt] [PATCH v2 1/1] src/driver.c: remove duplicated code in virGetConnect* functions