From nobody Tue Nov 26 00:42:05 2024 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=1589581531; cv=none; d=zohomail.com; s=zohoarc; b=L05fKot6EvfRAcgYifUNfIfqXEL+UDSRkEuOSdarvR8IPqD8RfP+FAEVJms6dQZUP/k782Iof7N1GkC7aBZ7CDmOHvCcozkbexA+yN8R0zTZTx95L2Crk25PT5VumOE+w9p+vU7cLYjz5bG0Bq9ClH27lKYjtLukvakICG62rfk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1589581531; 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=xKAUNNl5fYh+r88e6pq34/EZYbR+qlUnC353pALAREo=; b=fq/3XB1VG0m6Sm9Kuyv3nHlB2zBJU11eh/E46oZvmd0K/24KYensdDVIcmQnCcJKq/gbZe2od/a4wctuQm2gOfaS7l85I/3scvtxIlri0VFRNDcgUjBON3BZuUJDbDFa1ErT5IcGlpjy9rbe0VHuamgzZHifqZy7M21Y4urEo98= 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 1589581531465869.3314506199285; Fri, 15 May 2020 15:25:31 -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-374-xrwF8_mDPcSZKGxiqWIFIw-1; Fri, 15 May 2020 18:25:26 -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 C29D3107ACF7; Fri, 15 May 2020 22:25:20 +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 A126F3A2; Fri, 15 May 2020 22:25:20 +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 725CB4EA02; Fri, 15 May 2020 22:25:20 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 04FMPCVx015269 for ; Fri, 15 May 2020 18:25:12 -0400 Received: by smtp.corp.redhat.com (Postfix) id 58D5F2029F6F; Fri, 15 May 2020 22:25:12 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast02.extmail.prod.ext.rdu2.redhat.com [10.11.55.18]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4BF882029F62 for ; Fri, 15 May 2020 22:25:09 +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 847EC8007C8 for ; Fri, 15 May 2020 22:25:09 +0000 (UTC) Received: from mail-qv1-f68.google.com (mail-qv1-f68.google.com [209.85.219.68]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-10-t1MCgYK7OCSXTDiXVCe4lA-1; Fri, 15 May 2020 18:25:07 -0400 Received: by mail-qv1-f68.google.com with SMTP id g20so1895309qvb.9; Fri, 15 May 2020 15:25:07 -0700 (PDT) Received: from rekt.ibmuc.com ([2804:431:c7c7:fbf2:bc5e:c314:af31:7070]) by smtp.gmail.com with ESMTPSA id o18sm3181386qtb.7.2020.05.15.15.25.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 May 2020 15:25:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589581530; 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=xKAUNNl5fYh+r88e6pq34/EZYbR+qlUnC353pALAREo=; b=ORQbNXhtlt5pwDZqW44wlbRt5TVbbY7+fsb7smLIpOuvJaGCZ5+oUDrnV6Ipboq3E9FXJn 42Mql36DtSZ1hctY2nDKlyetsltfsowi3uZMlXleE/kKxG8To8ZQlmSMPPcFs+7z49JjDJ 5Dqkb3u57k3PrIGM2Dk+a6Z7RDIzVUk= X-MC-Unique: xrwF8_mDPcSZKGxiqWIFIw-1 X-MC-Unique: t1MCgYK7OCSXTDiXVCe4lA-1 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=xKAUNNl5fYh+r88e6pq34/EZYbR+qlUnC353pALAREo=; b=ZJTh/m/BFZjnlXcqGJYc13e0lKgHAL0bNF0daNYuOz9jEQFhWGAQfTeLcHxqnnvoOH /Wa8oozDPP52nQAq9Fyd+/7yYeVNWmKrjashmVDvWqJ1WxBo0a5LaO769BdSKLZCaofA aGwGqhq30t4sf4WmhMgEuzQb3lUPDTS04n3bJ9ih42cfXEDS5quS4TIbX+SROKf70gNq 8ceP6Zrg5dZJnBixOrN5sbDgaHU+5MmP8BIqU1TWrqKrUIEtJ4CTAo/DkIxVoX+ZKXpy H9RkgXF1gZfgLLNriMyl9CIQATiu5mgUoyyBFaav9Ht0F63KelfQLIrZTLBOLZW8qHGG OSoA== X-Gm-Message-State: AOAM533g0GKprwVNKW8uVrMOYLA4rxWWm2VbD4aOEk8pbKUvfsGt7BgU nnD0GoyqGKfiLD3lY8izUdUHx8Ih X-Google-Smtp-Source: ABdhPJwX9JPd2NxZDyy5bbfKC4UCwta8eSz1b161IgMgvv912JeCiOqLPbaxvh5731MbCLYy6sJ0Ng== X-Received: by 2002:a05:6214:1365:: with SMTP id c5mr5442523qvw.152.1589581506541; Fri, 15 May 2020 15:25:06 -0700 (PDT) From: Daniel Henrique Barboza To: libvir-list@redhat.com Subject: [PATCH v4 03/10] qemu_extdevice.c: remove unneeded 'ret' variable Date: Fri, 15 May 2020 19:24:06 -0300 Message-Id: <20200515222413.1231605-4-danielhb413@gmail.com> In-Reply-To: <20200515222413.1231605-1-danielhb413@gmail.com> References: <20200515222413.1231605-1-danielhb413@gmail.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-loop: libvir-list@redhat.com Cc: Daniel Henrique Barboza , stefanb@linux.ibm.com, jtomko@redhat.com, david@gibson.dropbear.id.au 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 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" qemuExtDevicesInitPaths() does not need 'ret'. Signed-off-by: Daniel Henrique Barboza Reviewed-by: Stefan Berger --- src/qemu/qemu_extdevice.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/qemu/qemu_extdevice.c b/src/qemu/qemu_extdevice.c index 2096272761..2ff3f68f5d 100644 --- a/src/qemu/qemu_extdevice.c +++ b/src/qemu/qemu_extdevice.c @@ -73,12 +73,10 @@ static int qemuExtDevicesInitPaths(virQEMUDriverPtr driver, virDomainDefPtr def) { - int ret =3D 0; - if (def->tpm) - ret =3D qemuExtTPMInitPaths(driver, def); + return qemuExtTPMInitPaths(driver, def); =20 - return ret; + return 0; } =20 =20 --=20 2.26.2