From nobody Mon Feb 9 08:28:03 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) client-ip=207.211.31.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.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=1578347921; cv=none; d=zohomail.com; s=zohoarc; b=ia19fuh9n4iReZxqIVpwLsefZRg1FYQJ1f2xC6rnlPxHLo2eTv75Ow3muh9oDGkCgNVPSqfZxX1jMrED9OMxdg2u9VGlEnStg8gfIJ+nYlWx2LpyA4zJ/MN1EyX/gEVizGLVn7FtHs9uF6ZcQOe+jJKpedpV+vJvK/g6JOJjLKI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1578347921; 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=wz31r8/oSHDUaGB9DjTmK74JarHB/xBs+OSrs2KbeVw=; b=NSYjLySDRjHmpWe0u68Klprz6SZ8Of5Kb8D636oH9PLEGyuh01uw4TVQQKPz8xy83955SG3bW0/enmb+dN809LmIU+nRHE4CtQOSpfG3/5AY10UhI2DiT+L+QL2KM0LuIjkujIAKtMfKV7OPcAU29o3TXh0A4TwGZ92m7XemGvI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.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 [207.211.31.120]) by mx.zohomail.com with SMTPS id 1578347921139362.7630381781298; Mon, 6 Jan 2020 13:58:41 -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-283-Lw2zCJd9OlixhQ1CG1C4nQ-1; Mon, 06 Jan 2020 16:58:38 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D5DDCDBF1; Mon, 6 Jan 2020 21:58:31 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AF1BB7DB5B; Mon, 6 Jan 2020 21:58:31 +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 25FCA18089CF; Mon, 6 Jan 2020 21:58:31 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 006LwFEI007241 for ; Mon, 6 Jan 2020 16:58:15 -0500 Received: by smtp.corp.redhat.com (Postfix) id 19790108BDA; Mon, 6 Jan 2020 21:58:15 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast05.extmail.prod.ext.rdu2.redhat.com [10.11.55.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 14676108BDD for ; Mon, 6 Jan 2020 21:58:15 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id EB4D6802A51 for ; Mon, 6 Jan 2020 21:58:14 +0000 (UTC) Received: from mail-qv1-f67.google.com (mail-qv1-f67.google.com [209.85.219.67]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-376-ylZjOsnsO1ahw8NkvdbeMA-1; Mon, 06 Jan 2020 16:58:13 -0500 Received: by mail-qv1-f67.google.com with SMTP id l14so19692476qvu.12 for ; Mon, 06 Jan 2020 13:58:13 -0800 (PST) Received: from rekt.ibmuc.com ([2804:431:c7c6:655b:9e1c:e865:3705:e1df]) by smtp.gmail.com with ESMTPSA id x34sm23898440qtd.20.2020.01.06.13.58.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jan 2020 13:58:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1578347920; 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=wz31r8/oSHDUaGB9DjTmK74JarHB/xBs+OSrs2KbeVw=; b=UNV58CzIIBIKX1GdCLtKhXOf9TeRWNNHXbzLK+cHaIbnb8s55xAPzM/fx17iEaQsUouNpS 1pM06UidGogVn2F0LbHrZrO5IpQXrTZRKQU6LYKbRGCLocLJJhlY14u8YOYh08HxNOCYi+ JuK8U+GS5m20xTiHyzIn+fxxgbtgSwk= 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=Ui1qx6+hxkCm/f1A/W57QgpuUxYSX/3hUCVBBU5t+yw=; b=mQuHdjqh8feP1FtxtgQ361Ho0Detql2U84rScow7zU9AAO/I6C+ZGUeBF4unjEq99m fgdrofjG3RME8XKiLHBDvkSzO3hOfIIHTQoSvxUKSwvi6mD0SrQ6uYgSPeXp+zMvSEuR K+fvvPnoJXzj7Swwj9F1xkMYwJqAUv8UEZhzxW2Ek8MKAtrKpJvMVNS3g3Eax7FbLRnK ASHlhvjPIBeoTUEaEKZDYLBV5cywYePeFy0w6TianYEXJ/dtjoTReALhmLtet/8ow995 lYcoNlf9I7a0u7iJIvUcQGu6zNrw4Vo2/hA1rEv5mkX+S+d8Uf3/SUerdyfdkjheY6n1 wjHg== X-Gm-Message-State: APjAAAX2AzHIK5mmBpOxdPQHSM7zoE3HaB3zwtpDnmdGT7Qzu3nZrSEH gPv23/1yjYMWPjIdtyWh3ks8Rqai X-Google-Smtp-Source: APXvYqyy/JflYFagCR7NFrzfxS/nJ5IYO8l/2jrXWege8uCOFZA3GNfp/kJhG2wegGkH1lYVaccR5Q== X-Received: by 2002:a0c:c542:: with SMTP id y2mr6791627qvi.225.1578347892459; Mon, 06 Jan 2020 13:58:12 -0800 (PST) From: Daniel Henrique Barboza To: libvir-list@redhat.com Date: Mon, 6 Jan 2020 18:57:34 -0300 Message-Id: <20200106215750.361615-11-danielhb413@gmail.com> In-Reply-To: <20200106215750.361615-1-danielhb413@gmail.com> References: <20200106215750.361615-1-danielhb413@gmail.com> MIME-Version: 1.0 X-MC-Unique: ylZjOsnsO1ahw8NkvdbeMA-1 X-MC-Unique: Lw2zCJd9OlixhQ1CG1C4nQ-1 X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id 006LwFEI007241 X-loop: libvir-list@redhat.com Cc: Daniel Henrique Barboza Subject: [libvirt] [PATCH v1 10/26] locking/lock_driver_lockd.c: remove unneeded labels 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.79 on 10.5.11.11 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 --- src/locking/lock_driver_lockd.c | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/src/locking/lock_driver_lockd.c b/src/locking/lock_driver_lock= d.c index 339e2f6949..393154bb3c 100644 --- a/src/locking/lock_driver_lockd.c +++ b/src/locking/lock_driver_lockd.c @@ -140,7 +140,6 @@ virLockManagerLockDaemonConnectionRegister(virLockManag= erPtr lock, { virLockManagerLockDaemonPrivatePtr priv =3D lock->privateData; virLockSpaceProtocolRegisterArgs args; - int rv =3D -1; =20 memset(&args, 0, sizeof(args)); =20 @@ -157,12 +156,9 @@ virLockManagerLockDaemonConnectionRegister(virLockMana= gerPtr lock, 0, NULL, NULL, NULL, (xdrproc_t)xdr_virLockSpaceProtocolRegiste= rArgs, (char*)&args, (xdrproc_t)xdr_void, NULL) < 0) - goto cleanup; - - rv =3D 0; + return -1; =20 - cleanup: - return rv; + return 0; } =20 =20 @@ -173,7 +169,6 @@ virLockManagerLockDaemonConnectionRestrict(virLockManag= erPtr lock G_GNUC_UNUSED, int *counter) { virLockSpaceProtocolRestrictArgs args; - int rv =3D -1; =20 memset(&args, 0, sizeof(args)); =20 @@ -186,12 +181,9 @@ virLockManagerLockDaemonConnectionRestrict(virLockMana= gerPtr lock G_GNUC_UNUSED, 0, NULL, NULL, NULL, (xdrproc_t)xdr_virLockSpaceProtocolRestric= tArgs, (char*)&args, (xdrproc_t)xdr_void, NULL) < 0) - goto cleanup; - - rv =3D 0; + return -1; =20 - cleanup: - return rv; + return 0; } =20 =20 --=20 2.24.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list