From nobody Mon Feb 9 21:21:27 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.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 216.205.24.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=1599830598; cv=none; d=zohomail.com; s=zohoarc; b=SxBiZht35wHESTPPchJgbSTDa45P64/ZKAglczA8EQyoHgpJH7JMwkxDxCaXQw60QuSQmEbZHMt5JTiy1ezDKSlRTj7pcD8W1uX2s3LDBHVm6j+T+bAZdsA73gmYs+FujrX0biLQQQJfHeTWdkoxiIqcPtR8PdUpUPWg0XgYPng= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1599830598; 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=b+6uQFcETR6gD9BvNFVtAZZJTJus2nzOkdTSj+Dqn3E=; b=fQVitjIGgfmhNwdsoKekl2NhYmv24k1j6N4PolqVyr+wMjXCZZC1eXO93RnOzNL8z8PwqZ4FUgw84CnuoaLEd01ccLpGr9ALAvG/2m3J/eIQLdLrpGN3X/emuyb4ImsLR3eS9qa8cQ2dRFEmtG2kXGHOZDntIRUe9uUuE0mNKAE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.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 [216.205.24.124]) by mx.zohomail.com with SMTPS id 1599830598302611.9294650083477; Fri, 11 Sep 2020 06:23:18 -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-273-F1sKv7-jMWGeZP89YRIanQ-1; Fri, 11 Sep 2020 09:23:14 -0400 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 6C7771008550; Fri, 11 Sep 2020 13:23:08 +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 47C0A17B33; Fri, 11 Sep 2020 13:23:08 +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 E23B2181A89B; Fri, 11 Sep 2020 13:23:07 +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 08BDN65G025400 for ; Fri, 11 Sep 2020 09:23:06 -0400 Received: by smtp.corp.redhat.com (Postfix) id 3C5C160C47; Fri, 11 Sep 2020 13:23:06 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-112-163.ams2.redhat.com [10.36.112.163]) by smtp.corp.redhat.com (Postfix) with ESMTP id 460FD60C17; Fri, 11 Sep 2020 13:23:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1599830597; 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=b+6uQFcETR6gD9BvNFVtAZZJTJus2nzOkdTSj+Dqn3E=; b=bMKhjqcF1KU9Fof1XmG6zWHjUehtKx8do9Hf1IUEI8W3kZQ4LZaucO0PQuSvcl283mSAU1 N5zIvYYCxj6HHc12OzEQ5zKo2A/LVh2/mSzyrvvss5hVJk1h3QluSi2EdGtF2+HaZVeoJ6 ozE2T8N/P8FGTT24sTlOHo0ztTbpK58= X-MC-Unique: F1sKv7-jMWGeZP89YRIanQ-1 From: Tim Wiederhake To: libvir-list@redhat.com Subject: [libvirt PATCH v3 5/8] cpu_map: Remove unnecessary variable in loadData Date: Fri, 11 Sep 2020 15:22:46 +0200 Message-Id: <20200911132249.514503-6-twiederh@redhat.com> In-Reply-To: <20200911132249.514503-1-twiederh@redhat.com> References: <20200911132249.514503-1-twiederh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com Cc: =?UTF-8?q?J=C3=A1n=20Tomko?= , Tim Wiederhake 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.001 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Signed-off-by: Tim Wiederhake Reviewed-by: J=C3=A1n Tomko --- src/cpu/cpu_map.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/cpu/cpu_map.c b/src/cpu/cpu_map.c index 743547c6d1..6baaa77776 100644 --- a/src/cpu/cpu_map.c +++ b/src/cpu/cpu_map.c @@ -43,7 +43,6 @@ loadData(const char *mapfile, g_autofree xmlNodePtr *nodes =3D NULL; int n; size_t i; - int rv; =20 if ((n =3D virXPathNodeSet(element, ctxt, &nodes)) < 0) return -1; @@ -64,8 +63,7 @@ loadData(const char *mapfile, } VIR_DEBUG("Load %s name %s", element, name); ctxt->node =3D nodes[i]; - rv =3D callback(ctxt, name, data); - if (rv < 0) + if (callback(ctxt, name, data) < 0) return -1; } =20 --=20 2.26.2