From nobody Sun Feb 8 05:41:06 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=1591104732; cv=none; d=zohomail.com; s=zohoarc; b=eSmcTB8AB4OCrkW1vZJSfrFXOGV5OF+r4K1tNuHTtdBXZRloJCMbjk/U3ildWS+JE386S+JMStsCmb0OufkgLH7Fe3zt1sBHmngmpM38+XsbF5CWMorujrWuwo7ZIX1yuA2kyU8VsZQM3asDoowpXdkGHb0IHSogxhRqzuvHSPc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1591104732; 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=kYxL6wlWalU1y5ELnkI9Dp6cP38YI9EnZ+MfX6M2WEQ=; b=bmSrwVZwZTor5RdbSa7SKZJeox3rLj/E10Qv3aRYuEE9+0QC16QLRKy7HSQGLkDVanioBFXZEaTqT879kEJZHH5RyVvHmCIRh+VGQv4G0h9W1OSV0zHaJZrYTbDz6pOm9HyNPOQ04h+oZSscg+/jZ6zerZXqUR3ChN+85fMdzX0= 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 1591104732130222.7314471237239; Tue, 2 Jun 2020 06:32:12 -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-386-VtLtqxLzMLaJAAdD6k2Bog-1; Tue, 02 Jun 2020 09:32:07 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id F0C2E85B67A; Tue, 2 Jun 2020 13:32:01 +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 D14CE78F06; Tue, 2 Jun 2020 13:32:01 +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 A215797017; Tue, 2 Jun 2020 13:32:01 +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 052DVs4U007302 for ; Tue, 2 Jun 2020 09:31:54 -0400 Received: by smtp.corp.redhat.com (Postfix) id 7935D202683D; Tue, 2 Jun 2020 13:31:54 +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 28A242017DCB for ; Tue, 2 Jun 2020 13:31:48 +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 572A386CB91 for ; Tue, 2 Jun 2020 13:31:48 +0000 (UTC) Received: from mail-qt1-f171.google.com (mail-qt1-f171.google.com [209.85.160.171]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-475-0-TboUuYNKyT2PfSldsjKQ-1; Tue, 02 Jun 2020 09:31:46 -0400 Received: by mail-qt1-f171.google.com with SMTP id k22so10566298qtm.6; Tue, 02 Jun 2020 06:31:46 -0700 (PDT) Received: from rekt.ibmuc.com ([2804:431:c7c7:9da7:da03:b92e:aafb:831c]) by smtp.gmail.com with ESMTPSA id c58sm2735424qtd.27.2020.06.02.06.31.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jun 2020 06:31:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1591104730; 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=kYxL6wlWalU1y5ELnkI9Dp6cP38YI9EnZ+MfX6M2WEQ=; b=RSvu1YELBLaI/7AuFjri3N6IS9yQmydhlWD8m2Pc5aO9UZtLQ3qvIHN5Fxs23apD8cOWsU s2GjL9XfraLTDArhS9kxgOqrKH1f8gOEBa1zjd3vjLf4rzp5vvQOqg8nrp5PZFdBK0JhUg DReuUZG83xATmmoez7ZDugSoj9SSxME= X-MC-Unique: VtLtqxLzMLaJAAdD6k2Bog-1 X-MC-Unique: 0-TboUuYNKyT2PfSldsjKQ-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=kYxL6wlWalU1y5ELnkI9Dp6cP38YI9EnZ+MfX6M2WEQ=; b=RaSAQ9pUwsn5C/EUOi71dUMxtTjUwNgupYjHFDNr5dLuE3uNCfGFwbjeQH488/E5VW LG/p8DNWygAXrE8ayPkZVdggtDQnh8VApXE8LQt35GLtOCSoE0PV39sa9TXY/gDofcMA plC4pj8eFCdzC7hSu02It9kcM/QFr2Z5L0kjaassD61cXgGwi8U/DCcokp7q/aK2wpxo 0J+8vP39G584MmEw6c0IKmdwRBkFlZhqvu0vcVf/72/t4s31nSbqI42rk85Olnq4VSC+ d+U64pDpAuXs1NCmbuHfoXwoIEBnECSo1cMBCxLn0QYAl2Kzsf7m9bVc1ilpxY8sqahX rFWQ== X-Gm-Message-State: AOAM5323MqzTmuVQOxCo/KH9oS5625jKFyF4WQ3Xw9hHW9tVViCC9Awk qRYCzvkNgY2PCFHXD64UZ3IqcpFy X-Google-Smtp-Source: ABdhPJxPg0pnJ8MtO8x0MeGqVACDyZGEL/xB3pdRUfbUg4xhfJc3hTn7E4cfuQoKEIuYU7dcAJgTFw== X-Received: by 2002:ac8:134a:: with SMTP id f10mr27982489qtj.123.1591104705613; Tue, 02 Jun 2020 06:31:45 -0700 (PDT) From: Daniel Henrique Barboza To: libvir-list@redhat.com Subject: [PATCH v6 03/10] qemu_extdevice.c: remove unneeded 'ret' variable Date: Tue, 2 Jun 2020 10:31:00 -0300 Message-Id: <20200602133107.1987182-4-danielhb413@gmail.com> In-Reply-To: <20200602133107.1987182-1-danielhb413@gmail.com> References: <20200602133107.1987182-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 , jtomko@redhat.com, stefanb@linux.ibm.com, sathnaga@linux.vnet.ibm.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.79 on 10.5.11.15 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'. Tested-by: Satheesh Rajendran Reviewed-by: Stefan Berger Signed-off-by: Daniel Henrique Barboza --- 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 dc188e6042..8f1bd9311e 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