From nobody Sun Feb 8 14:52:07 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1531012057145746.3945833012086; Sat, 7 Jul 2018 18:07:37 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 47D6A3086245; Sun, 8 Jul 2018 01:07:35 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 016F71001911; Sun, 8 Jul 2018 01:07:35 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id CFC954A460; Sun, 8 Jul 2018 01:07:33 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w6817VMx030055 for ; Sat, 7 Jul 2018 21:07:31 -0400 Received: by smtp.corp.redhat.com (Postfix) id BEC0745A4; Sun, 8 Jul 2018 01:07:31 +0000 (UTC) Received: from mx1.redhat.com (ext-mx08.extmail.prod.ext.phx2.redhat.com [10.5.110.32]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B39514502 for ; Sun, 8 Jul 2018 01:07:31 +0000 (UTC) Received: from mail-qk0-f181.google.com (mail-qk0-f181.google.com [209.85.220.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 87878C057F85 for ; Sun, 8 Jul 2018 01:07:20 +0000 (UTC) Received: by mail-qk0-f181.google.com with SMTP id u62-v6so8142104qkf.9 for ; Sat, 07 Jul 2018 18:07:20 -0700 (PDT) Received: from localhost.localdomain ([2804:7f5:d180:a19b:75f1:49c8:66b0:6e4d]) by smtp.gmail.com with ESMTPSA id e11-v6sm8007287qkb.4.2018.07.07.18.07.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 07 Jul 2018 18:07:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=AH/+P2gKpGf+n6RFQHH93jULELxjdSmrKh6tGjuVzyM=; b=TVetoT6mkKM8XEBezoBL+xmoXin9eFZ2huhORK+JmolsRQBXxDREZSob8iCUghbCxF IRan9QIkQr2LyYPaxQOSmd66suGqFq1kamlRkW+d/lj033uBvO/XZJKl/+gJNXTW/gNU 7OTMLarQA1nIxPERfwHASBDBL5I3dh1gRWgu1s2z76P20QL6gTPoysWD4Lr+F63tRf1e 8fHYhBiJpSZcDc+xTR2zrE91X0mpcOZoriaczmSMhPX8+8DH1Tm/cevspJnJY+S0gJuL Lw4IAuXx8qCMZP1et2l27chn/jkTe4tCr3CeML0jyxjo6NVEo6tErIu/hrPoj0Cz+ggK yKPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=AH/+P2gKpGf+n6RFQHH93jULELxjdSmrKh6tGjuVzyM=; b=PsZ/FQubmhkOq/Lq83NtPp7P6oL6W8B/Vq8yOLlMUPtQMYe4Ng1gtfyDsamfPkD46/ qbAD1z7mTYL36k6+9mgu9rt2KiGp4a9Q24zYoFVu24Ga9JYiD+8OUdINLfPVutT0ZN8t rZQ5rBEJn73zkbcSdn2fE2k7vR7V9vvWUNDIxLSiJJc6UpJjikhEQJQQPIelbHEPCm00 gJmU4ZgV+8oq69m155By4zmSu3qq202+Aw1ol1tNnLpGJs+BxcEXaOwZrHX1pK4x57nE y5NIALPTRkpIEZxX4eHiXnyIfetbU+r1r1LIktoqRIltTPUotufXiq+St6tMG/JtbI7b Hyrw== X-Gm-Message-State: APt69E0S/8Ca3MotDBjRm62aaHNWJNXpVaRV7S/olSEjObjMj1BS223Y K5plUWUcrovk/SVFxsLPpqh6fg== X-Google-Smtp-Source: AAOMgpeSzIRjVSiNYqu0vYMC8NMPV4XkxsBx1m+7sAEAmwdrmntROH01SraxS+BhiiRF1IXhtiNuHg== X-Received: by 2002:a37:21a0:: with SMTP id f32-v6mr13463159qki.45.1531012039386; Sat, 07 Jul 2018 18:07:19 -0700 (PDT) From: Marcos Paulo de Souza To: libvir-list@redhat.com Date: Sat, 7 Jul 2018 22:06:55 -0300 Message-Id: <20180708010656.9047-4-marcos.souza.org@gmail.com> In-Reply-To: <20180708010656.9047-1-marcos.souza.org@gmail.com> References: <20180708010656.9047-1-marcos.souza.org@gmail.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Sun, 08 Jul 2018 01:07:20 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Sun, 08 Jul 2018 01:07:20 +0000 (UTC) for IP:'209.85.220.181' DOMAIN:'mail-qk0-f181.google.com' HELO:'mail-qk0-f181.google.com' FROM:'marcos.souza.org@gmail.com' RCPT:'' X-RedHat-Spam-Score: 1.281 * (DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, NML_ADSP_CUSTOM_MED, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_PASS, T_DKIM_INVALID) 209.85.220.181 mail-qk0-f181.google.com 209.85.220.181 mail-qk0-f181.google.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.32 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com Cc: Marcos Paulo de Souza Subject: [libvirt] [RFC PATCH 3/4] hyperv_driver: Use VIR_DRV_CONN_CHECK_SERVER macro X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.49]); Sun, 08 Jul 2018 01:07:35 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" hyperv needs a server to connect to, so use this macro in order to reuse code. Signed-off-by: Marcos Paulo de Souza --- src/hyperv/hyperv_driver.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/hyperv/hyperv_driver.c b/src/hyperv/hyperv_driver.c index 95496bdf73..a419f0ccee 100644 --- a/src/hyperv/hyperv_driver.c +++ b/src/hyperv/hyperv_driver.c @@ -128,12 +128,7 @@ hypervConnectOpen(virConnectPtr conn, virConnectAuthPt= r auth, =20 virCheckFlags(VIR_CONNECT_RO, VIR_DRV_OPEN_ERROR); =20 - /* Require server part */ - if (conn->uri->server =3D=3D NULL) { - virReportError(VIR_ERR_INVALID_ARG, "%s", - _("URI is missing the server part")); - return VIR_DRV_OPEN_ERROR; - } + VIR_DRV_CONN_CHECK_SERVER; =20 /* Require auth */ if (auth =3D=3D NULL || auth->cb =3D=3D NULL) { --=20 2.17.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list