From nobody Sun Feb 8 14:51:49 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 205.139.110.120 as permitted sender) client-ip=205.139.110.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of redhat.com designates 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1571737226; cv=none; d=zoho.com; s=zohoarc; b=mDP0LyX+EYdjzANNBve2J+d3LXCj8WdnVy/Iv+AU46+B/CV9B0cD6a3y2wLUCDSK+B9b7sv+DjE8Z4QFSqbtRxhskHs2c5ig3q+y2Kh0WgFmQ4qbogq+Id2e2vkPIqiklWDt5QL+J5NPyrY1lQOemMs7mwHKibevUSX7mhUE/GU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1571737226; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=H5ck2plF2UGzl/6bj1r33ovlVd3PQOcjeMkcarnzn/Q=; b=TBmrBXr8FwX9bY6M7mWBnVuyHrh/osWh0NwoM6qYt7cFr63mA7Yf5j3hCyzQPV6jg+ofibyLPxOmSirzUHr3XW0Mi96kfJNU1g+9kbMr93HVdTEC9paaNSuO2GjBSgA/0mLn7GShf6G1w7AJiI42I8tgc/gGPwsFo/kuZ0PKjUg= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of redhat.com designates 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by mx.zohomail.com with SMTPS id 1571737226538723.8945322668684; Tue, 22 Oct 2019 02:40:26 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-78-mP1oXM7UPm-DPX9lwgBVYg-1; Tue, 22 Oct 2019 05:40:23 -0400 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 mimecast-mx01.redhat.com (Postfix) with ESMTPS id D825F1800D79; Tue, 22 Oct 2019 09:40:18 +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 B394E100164D; Tue, 22 Oct 2019 09:40:18 +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 6D9228354D; Tue, 22 Oct 2019 09:40:18 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x9LIJl99000648 for ; Mon, 21 Oct 2019 14:19:47 -0400 Received: by smtp.corp.redhat.com (Postfix) id 8764760C4E; Mon, 21 Oct 2019 18:19:47 +0000 (UTC) Received: from mx1.redhat.com (ext-mx22.extmail.prod.ext.phx2.redhat.com [10.5.110.63]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8072060BE2 for ; Mon, 21 Oct 2019 18:19:47 +0000 (UTC) Received: from mail-qk1-f196.google.com (mail-qk1-f196.google.com [209.85.222.196]) (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 DE3AD18CCF0F for ; Mon, 21 Oct 2019 18:19:46 +0000 (UTC) Received: by mail-qk1-f196.google.com with SMTP id y81so9683398qkb.7 for ; Mon, 21 Oct 2019 11:19:46 -0700 (PDT) Received: from rekt.ibmuc.com ([2804:431:c7c6:7979:d16f:4e5e:8e8d:1141]) by smtp.gmail.com with ESMTPSA id d205sm9248741qke.96.2019.10.21.11.19.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Oct 2019 11:19:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1571737225; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=H5ck2plF2UGzl/6bj1r33ovlVd3PQOcjeMkcarnzn/Q=; b=GYlmiRH3BkHh43KJcz387C5vukbr7R3oOqez39ix+Elf1RqonieXZWj5swOucycgZBdhg+ NO1m3olz1yGpFtBTXEIPqcaQpM8vinX7AtZMoN9QWq1I5hx7a84RLqlKfqEKdnB38dqpIQ 4EEHjA6MH06bP/SdvIaTFlxuB/LvIFo= 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:mime-version:content-transfer-encoding; bh=P0o8WAXfTBGo8duyiuWRIItsBWj4S6VkHa8biKkVUhI=; b=aGIe9Mod95F6TPqmbzBUcxadHPfen/2orBY/SM2XUbAs4eLLOAS+YQoRj3iux+WoS2 USxhX9n8B35ooIr0eWonyNeT5w9ai+d1ZaD+4n8tVo2Ej/F+GlymjPM5Ke/04HEJ9oJ2 /JvSNEaRpZGR8yaDPGMhaZK+MPKh2R2//GF20juR1YPFWt5fePNZ8u9XZ9sL8FWGnXhX ipmPtz+z7e3ZkkXAeHFyPtTucwg4sOomDRpKLoOaaQQtkmFfxS3K6aaXYaEUAXEt9xEL WhXrhZPdtYoTBGmo6NfexmiGpTkY+1qHggcRaE8jMFz7x2u0DQQcLKxLrWMwBFn5MbT2 pQDA== X-Gm-Message-State: APjAAAUV+jRyZZ/2QXEiz72Sqnc8BbnQfWVd7gn49pHUbMfxnuObu1re jSgfwbHAodN0Ihu+Wwy9ImWguAgnEs8= X-Google-Smtp-Source: APXvYqzc0te5dT19AUj75p4uHCjDvHSYqIbZsAnXc1Jrtwe+YpZG8kA/27DxEfkbe/et4k2SsTWfhA== X-Received: by 2002:ae9:df07:: with SMTP id t7mr22136580qkf.58.1571681986053; Mon, 21 Oct 2019 11:19:46 -0700 (PDT) From: Daniel Henrique Barboza To: libvir-list@redhat.com Date: Mon, 21 Oct 2019 15:19:05 -0300 Message-Id: <20191021181911.14986-16-danielhb413@gmail.com> In-Reply-To: <20191021181911.14986-1-danielhb413@gmail.com> References: <20191021181911.14986-1-danielhb413@gmail.com> MIME-Version: 1.0 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.63]); Mon, 21 Oct 2019 18:19:47 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.63]); Mon, 21 Oct 2019 18:19:47 +0000 (UTC) for IP:'209.85.222.196' DOMAIN:'mail-qk1-f196.google.com' HELO:'mail-qk1-f196.google.com' FROM:'danielhb413@gmail.com' RCPT:'' X-RedHat-Spam-Score: 0.15 (DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS) 209.85.222.196 mail-qk1-f196.google.com 209.85.222.196 mail-qk1-f196.google.com X-Scanned-By: MIMEDefang 2.84 on 10.5.110.63 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com Cc: Daniel Henrique Barboza Subject: [libvirt] [PATCH v1 15/21] libvirt.c: remove unneeded cleanup label 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: , 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-MC-Unique: mP1oXM7UPm-DPX9lwgBVYg-1 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Signed-off-by: Daniel Henrique Barboza Reviewed-by: J=C3=A1n Tomko --- src/libvirt.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/libvirt.c b/src/libvirt.c index 33b43305a1..9d783761e6 100644 --- a/src/libvirt.c +++ b/src/libvirt.c @@ -796,22 +796,19 @@ static int virConnectGetDefaultURI(virConfPtr conf, char **name) { - int ret =3D -1; const char *defname =3D getenv("LIBVIRT_DEFAULT_URI"); if (defname && *defname) { VIR_DEBUG("Using LIBVIRT_DEFAULT_URI '%s'", defname); *name =3D g_strdup(defname); } else { if (virConfGetValueString(conf, "uri_default", name) < 0) - goto cleanup; + return -1; =20 if (*name) VIR_DEBUG("Using config file uri '%s'", *name); } =20 - ret =3D 0; - cleanup: - return ret; + return 0; } =20 =20 --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list