From nobody Mon Feb 9 08:28:03 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.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 (zohomail.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=1578347923; cv=none; d=zohomail.com; s=zohoarc; b=G8XroEEV9pvAn1fOvwYcH9GXLtpzLjppH/DfSpCk78vb32nQPrMAPXEa+xSUL6cXQ08vPddXRWY32zWtADtsj815GzVZFIfKCtXHJflzQR53WH6glk0O6L5l0+EzPw4lJuO44Ef9AKfIKjOotTYg+jiQVpe9AniZj/R+WCZHynI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1578347923; 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=L3f+PpWu6Ldt/hanMrMUErYnzkW/VOuvjsM6FyUwcwM=; b=Dzy8GM247DiJJXJRPiyTMxkXTFmZ2HPtSmt1WvR+80hV+Sev/8aT2FxOQsuwEnALe2N6atQ+eaAGNeMajU34sXqPbd/bLGQtmFWROwK9ZPKiyhvyxpBoQUXS70VqkMwg8o4FikETG24DYllyFp+0Zd2JiusLcXi7jMsnnHpXTZ0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.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 1578347923341310.54289063817214; Mon, 6 Jan 2020 13:58:43 -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-264-Da79Wbx0PjS1thqrFUFtDg-1; Mon, 06 Jan 2020 16:58:40 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A9578100550E; Mon, 6 Jan 2020 21:58:31 +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 8161560CD1; 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 3E6E481C81; Mon, 6 Jan 2020 21:58:31 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 006LwG6X007250 for ; Mon, 6 Jan 2020 16:58:16 -0500 Received: by smtp.corp.redhat.com (Postfix) id 2373E2166B2A; Mon, 6 Jan 2020 21:58:16 +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 1F61E2166B29 for ; Mon, 6 Jan 2020 21:58:16 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) (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 F2C3180D959 for ; Mon, 6 Jan 2020 21:58:15 +0000 (UTC) Received: from mail-qk1-f193.google.com (mail-qk1-f193.google.com [209.85.222.193]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-67-4EE5BG-7PC-nyVOqob0HYw-1; Mon, 06 Jan 2020 16:58:14 -0500 Received: by mail-qk1-f193.google.com with SMTP id x1so40855956qkl.12 for ; Mon, 06 Jan 2020 13:58:14 -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.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jan 2020 13:58:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1578347922; 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=L3f+PpWu6Ldt/hanMrMUErYnzkW/VOuvjsM6FyUwcwM=; b=Q5UkLFyvzOEg37MNQC8rhQpHcMSmCE7MZb/ugc99tH1+a+IBCbH0Nl44ZUB5BjzwzTw80J yawkiuMmlkkZk3oUqzpMapOnsJDPBkIwi+DAtiOjMcpjijDvjZ+hRoOWxNuoTGrIYX9Aap UIuqDgorAl6GrlVS44oeQRcKj5vpsnw= 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=oJwlQwT/RUoJkAzop5AIOGZrl4x8lUr3EpkLl+kdm1Y=; b=Hl+ev5Hmba4YcYciisOJO9fZEk78gq5Ie1oJCRZzMEia8Io5elaD4AloGoOxAydlYX +UAv220LlVPnxUlGMlhCuOg3qejROYp7qsuVMxJo4FEHEjP7s0qmN9I63AJ1TP6CHIH5 5IKATRXFOEIih5U8QOn+cjUO+M5n+mIEAqWHTdw78uVX+qHufx3gs3Edd3YKPJ2n3zYB HYtc7Ri/IhedNYmt8kCYdxQeM3rzTyZUvaQt39J5J6DLnYUcFSssiio9rv+RMVhgn3ld sgXO92vDdwJq+YHn6gnUh26wf+5mOu3HoLG089wefm00ykEcCTtzjWAcpdWTMiIKSOrz Z5XQ== X-Gm-Message-State: APjAAAVhS0vJXD7US+ZN7+CUGCwmJjILm9QQ8pWd4IjNCpx+62W/9qD7 tDc68e/eTFyKTWv2kgLh7/qC8IVF X-Google-Smtp-Source: APXvYqzbpLCbSmEerRuEeUbArhbbd32l9E1/Ox2QVTB+IargdDsYi637+1/JA27yBBmpUBPrwkubKQ== X-Received: by 2002:a05:620a:2013:: with SMTP id c19mr40216187qka.496.1578347893705; Mon, 06 Jan 2020 13:58:13 -0800 (PST) From: Daniel Henrique Barboza To: libvir-list@redhat.com Date: Mon, 6 Jan 2020 18:57:35 -0300 Message-Id: <20200106215750.361615-12-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: 4EE5BG-7PC-nyVOqob0HYw-1 X-MC-Unique: Da79Wbx0PjS1thqrFUFtDg-1 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id 006LwG6X007250 X-loop: libvir-list@redhat.com Cc: Daniel Henrique Barboza Subject: [libvirt] [PATCH v1 11/26] cpu/cpu_ppc64.c: remove unneeded 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.79 on 10.5.11.12 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/cpu/cpu_ppc64.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/cpu/cpu_ppc64.c b/src/cpu/cpu_ppc64.c index 818f1ec699..6b3590ab6a 100644 --- a/src/cpu/cpu_ppc64.c +++ b/src/cpu/cpu_ppc64.c @@ -81,7 +81,6 @@ ppc64CheckCompatibilityMode(const char *host_model, int host; int compat; char *tmp; - virCPUCompareResult ret =3D VIR_CPU_COMPARE_ERROR; =20 if (!compat_mode) return VIR_CPU_COMPARE_IDENTICAL; @@ -94,7 +93,7 @@ ppc64CheckCompatibilityMode(const char *host_model, virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("Host CPU does not support compatibility modes")); - goto out; + return VIR_CPU_COMPARE_ERROR; } =20 /* Valid compatibility modes: power6, power7, power8, power9 */ @@ -105,17 +104,14 @@ ppc64CheckCompatibilityMode(const char *host_model, virReportError(VIR_ERR_INTERNAL_ERROR, _("Unknown compatibility mode %s"), compat_mode); - goto out; + return VIR_CPU_COMPARE_ERROR; } =20 /* Version check */ if (compat > host) - ret =3D VIR_CPU_COMPARE_INCOMPATIBLE; - else - ret =3D VIR_CPU_COMPARE_IDENTICAL; + return VIR_CPU_COMPARE_INCOMPATIBLE; =20 - out: - return ret; + return VIR_CPU_COMPARE_IDENTICAL; } =20 static void --=20 2.24.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list