From nobody Mon Feb 9 01:06:51 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1605782047; cv=none; d=zohomail.com; s=zohoarc; b=U1jL8vXWTkXM1Fi0592TUeFMulGu8BA7vs9qBUgNmQ7ngdj7ZWjL8U2RmdIKs6SelF24nr/RVr72ZTMzQ66AnfM0fsBDTIAjeP3y70pajC5+URAW9mHxUjCcr4nnzR4jepmT+JR7cc0jBcbLEqC3fQcGZa4IS2fXCMs2GJpmWoc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1605782047; h=Content-Type:Content-Transfer-Encoding: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=XABZV9WXUwwofJcueIEzMBwOaMrlZz2LuA0PXXvx2rY=; b=alDVzZ6HvwheUEDrkZMbgDlM3/2OJkmv8V+yDTn0lIYQrJsQ/I6vePN4Xf5asw1/+mfx/YFPrNrdXXLTRvuykoO//q/gVNfh5ponMOOJKJqHk7HZATl4u/4i0vTWGPcw2X1CDsPdGOU/6WwqI69voodrLvlgSL1f8yJ3+f7rQGk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.zohomail.com with SMTPS id 1605782047632549.5300131680411; Thu, 19 Nov 2020 02:34:07 -0800 (PST) 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-379-xufzbs3KOYarhfa7sWvjPQ-1; Thu, 19 Nov 2020 05:33:53 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 169F8801B18; Thu, 19 Nov 2020 10:33:47 +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 E037619C47; Thu, 19 Nov 2020 10:33:46 +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 AE5714E590; Thu, 19 Nov 2020 10:33:46 +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 0AJAXdOK004333 for ; Thu, 19 Nov 2020 05:33:39 -0500 Received: by smtp.corp.redhat.com (Postfix) id 4898C19C48; Thu, 19 Nov 2020 10:33:39 +0000 (UTC) Received: from lpt.redhat.com (unknown [10.40.208.49]) by smtp.corp.redhat.com (Postfix) with ESMTP id A363F19C47 for ; Thu, 19 Nov 2020 10:33:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1605782046; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=XABZV9WXUwwofJcueIEzMBwOaMrlZz2LuA0PXXvx2rY=; b=BoYVikIcz2bD1ut9glmRGwZk3uPQu/chyvg+0Phu6Igsz1+0x8JqV69Q6cgowS0b1FRElB R+WoLmPwDo8QubUumySFDjRQ45NN3td+WnpAtsuKKbVxR1lz/thDAW6SmsWKmqlsibxSjx XWn9uQT+mwrU0BPFpI0umj2ESvAo2Jg= X-MC-Unique: xufzbs3KOYarhfa7sWvjPQ-1 From: =?UTF-8?q?J=C3=A1n=20Tomko?= To: libvir-list@redhat.com Subject: [libvirt PATCH 2/3] openvzDomainMigratePrepare3Params: remove else after goto Date: Thu, 19 Nov 2020 11:33:28 +0100 Message-Id: <9b560ac7c62e63e62673e80c89ac13f2f9464be4.1605781932.git.jtomko@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com 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.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) We jump to the error label if the 'if' condition is true. Remove the explicit else to make it more obvious that 'hostname' is filled on both branches of 'if (!uri_in)'. Signed-off-by: J=C3=A1n Tomko --- src/openvz/openvz_driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openvz/openvz_driver.c b/src/openvz/openvz_driver.c index 4fa7511f88..c6b7e21e7a 100644 --- a/src/openvz/openvz_driver.c +++ b/src/openvz/openvz_driver.c @@ -2130,9 +2130,9 @@ openvzDomainMigratePrepare3Params(virConnectPtr dconn, _("missing host in migration URI: %s"), uri_in); goto error; - } else { - hostname =3D uri->server; } + + hostname =3D uri->server; } =20 *uri_out =3D g_strdup_printf("ssh://%s", hostname); --=20 2.26.2