From nobody Sun Feb 8 19:39:34 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as permitted sender) client-ip=205.139.110.61; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.61 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=1578347916; cv=none; d=zohomail.com; s=zohoarc; b=bZ/A14H5GV6L//5kBrR/FNlsW87CL4DJxfy8V1lpL/wSpJoDZkHraw4qJuN9lv8DJK2HG+b0qXJVg3stO8sZthTNh49x7Frn2niYfL/tyokjLyli02FPGqjEHQXqck5yf+FHkpTBVL4AeLGHwgwHaZZOwyjBkx1w5CM08MKTx94= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1578347916; 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=TAyh2+EnBd1+CsJs3EVZ31qYyXseiK7/srStupXTWXE=; b=O7UvAamY0Z78I6pphZF2O6FKx+l0CDCfPFwyq5Au56EQH9FrykbdM+1dJJdnfXFjl2FHCuNYSReJf5mjJFPEC1AKFDVlWg9Z0rdrXnypTeOOvhdpDyJIyQPr9IVBPZJJI/v+OUHTVE/anXuCTng4PJcTtUcF6FSTHBwIoZ/5fJE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.61 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-delivery-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.61]) by mx.zohomail.com with SMTPS id 1578347916750444.95403696197445; Mon, 6 Jan 2020 13:58:36 -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-278-CnbtAjX5MWqMukZY7F9ZGQ-1; Mon, 06 Jan 2020 16:58:33 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 84CB4100551A; Mon, 6 Jan 2020 21:58:28 +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 0F4EF86C4C; Mon, 6 Jan 2020 21:58:28 +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 BBAB281C7D; Mon, 6 Jan 2020 21:58:27 +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 006LwDWU007227 for ; Mon, 6 Jan 2020 16:58:13 -0500 Received: by smtp.corp.redhat.com (Postfix) id 71F67F9ACB; Mon, 6 Jan 2020 21:58:13 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast01.extmail.prod.ext.rdu2.redhat.com [10.11.55.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6CA36F9AB6 for ; Mon, 6 Jan 2020 21:58:13 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) (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 4922A811AAC for ; Mon, 6 Jan 2020 21:58:13 +0000 (UTC) Received: from mail-qt1-f196.google.com (mail-qt1-f196.google.com [209.85.160.196]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-223-ZtiB6YdBMm6fuV-jytjsmQ-1; Mon, 06 Jan 2020 16:58:11 -0500 Received: by mail-qt1-f196.google.com with SMTP id 5so43710484qtz.1 for ; Mon, 06 Jan 2020 13:58:11 -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.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jan 2020 13:58:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1578347915; 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=TAyh2+EnBd1+CsJs3EVZ31qYyXseiK7/srStupXTWXE=; b=I5I6FpK+UYiRIx4yVMMh7L+X2ObUrq+MV6rXkSpS9dLEYaUC50k32oUVCUhxF9vLmmUUJY lKLQzxKmhT7wfGBtrgawbNEWU6Jb23Cq7s9th+YFG4Wf4XUHbVFML3x3SZG/gUrE8y/Aok 9XOt6+0IAQ+q2bJBYfbScy/wD3nhtOQ= 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=wCFg+TGK6HAhr5M70Gj1qaTjThAqrLQl/vFqp7Y0+EE=; b=oaav4P0IjhjdEUgmLP/LtCVbqFyH6OTQHHRTWXA8GJr5WaNThxUnAJpuoCca+WYP58 2g77vGHBObYKAQL2rRTxs/Uqs5spjbGuVh20KHQq1EQJnWsQa5HqAdUkcyd3fdkxmwCT p40ESuMFFKWKwYAuEmMm0Y7//8n5nzXLL4+a2FS5CiK1gLuuUrHHUUUZh8OftZB0Nqo3 VcQ+GsykVil6jgScnL+ijE+b1Mkc/CJh8bBLrezerOrLCKXop6k+7wleZPqD2ZrEbfMx du5GHiPI+5ypDNcd6KqR4KMrUk3pTjzxfkxU9pGIerUOL3EHHTxWWiAg4G/rSjP8GX+L ggtw== X-Gm-Message-State: APjAAAVWDrJtwiYShnIGj2p6zajgIqns4ldhNJy3rfbMILv7wpjxGgPt roiBiFvmzMpzAKbuHddYvh5HmvyE X-Google-Smtp-Source: APXvYqx7Q6FcO/LfBEG0An0LbNf+Kx0st6n+hI9xzteElUT3kmyo/FMiS8Nt5QyxtHPLAOiBQGmxyw== X-Received: by 2002:aed:3344:: with SMTP id u62mr76232275qtd.73.1578347890716; Mon, 06 Jan 2020 13:58:10 -0800 (PST) From: Daniel Henrique Barboza To: libvir-list@redhat.com Date: Mon, 6 Jan 2020 18:57:33 -0300 Message-Id: <20200106215750.361615-10-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: ZtiB6YdBMm6fuV-jytjsmQ-1 X-MC-Unique: CnbtAjX5MWqMukZY7F9ZGQ-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 006LwDWU007227 X-loop: libvir-list@redhat.com Cc: Daniel Henrique Barboza Subject: [libvirt] [PATCH v1 09/26] hyperv/hyperv_wmi.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.13 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/hyperv/hyperv_wmi.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/src/hyperv/hyperv_wmi.c b/src/hyperv/hyperv_wmi.c index 7d56677588..ca2d29733e 100644 --- a/src/hyperv/hyperv_wmi.c +++ b/src/hyperv/hyperv_wmi.c @@ -173,15 +173,15 @@ hypervCreateInvokeParamsList(hypervPrivate *priv, con= st char *method, hypervWmiClassInfoPtr info =3D NULL; =20 if (hypervGetWmiClassInfo(priv, obj, &info) < 0) - goto cleanup; + return NULL; =20 if (VIR_ALLOC(params) < 0) - goto cleanup; + return NULL; =20 if (VIR_ALLOC_N(params->params, HYPERV_DEFAULT_PARAM_COUNT) < 0) { VIR_FREE(params); - goto cleanup; + return NULL; } =20 params->method =3D method; @@ -191,7 +191,6 @@ hypervCreateInvokeParamsList(hypervPrivate *priv, const= char *method, params->nbParams =3D 0; params->nbAvailParams =3D HYPERV_DEFAULT_PARAM_COUNT; =20 - cleanup: return params; } =20 @@ -257,11 +256,10 @@ int hypervAddSimpleParam(hypervInvokeParamsListPtr params, const char *name, const char *value) { - int result =3D -1; hypervParamPtr p =3D NULL; =20 if (hypervCheckParams(params) < 0) - goto cleanup; + return -1; =20 p =3D ¶ms->params[params->nbParams]; p->type =3D HYPERV_SIMPLE_PARAM; @@ -271,10 +269,7 @@ hypervAddSimpleParam(hypervInvokeParamsListPtr params,= const char *name, =20 params->nbParams++; =20 - result =3D 0; - - cleanup: - return result; + return 0; } =20 /* --=20 2.24.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list