From nobody Mon May 6 18:36:57 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail(p=none dis=none) header.from=canonical.com ARC-Seal: i=1; a=rsa-sha256; t=1586432525; cv=none; d=zohomail.com; s=zohoarc; b=A3VDWjmCy1/ItZwxcjVFCHqjkRjdnpssxFSGxejCr1mh1KBVbd6g2zNBO0JKZ9HuREkUvroCqlTt65bbs6HmHZVvFuECsXjuMw60cDZ/JPgHLKrv/fc4fkJKhIknsu0OePppQ1q7tXCvphvTBVpLm7PrS4/gWDOMddmpYqh/RyU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1586432525; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=GhPa0D/kI4wu02C1tESVGvqx8+aCmICmmnOJPwpN/Ws=; b=hkmLL8PbskaO2w4IO6zgqYczSTyjk1Wf/7ohBXBbTPC6UAKtqImHuIFQR0iHOIlXpfrYXpqkZQwYdQsk0ilZSEAvJhepnosjPHUda1ROw1teGXxnWzKHIgGqCJcQdYFWCsOSh94+1aUODIyW4VfxxKoczPJ5wzwfuBGVHHBVux8= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1586432525768830.6142056092214; Thu, 9 Apr 2020 04:42:05 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1jMVYq-0006vD-Vy; Thu, 09 Apr 2020 11:41:32 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1jMVYp-0006v8-Uj for xen-devel@lists.xenproject.org; Thu, 09 Apr 2020 11:41:31 +0000 Received: from youngberry.canonical.com (unknown [91.189.89.112]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 0e6b5f50-7a57-11ea-b4f4-bc764e2007e4; Thu, 09 Apr 2020 11:41:31 +0000 (UTC) Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jMVYc-0004rk-7i; Thu, 09 Apr 2020 11:41:18 +0000 X-Inumbo-ID: 0e6b5f50-7a57-11ea-b4f4-bc764e2007e4 From: Colin King To: Konrad Rzeszutek Wilk , Bjorn Helgaas , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , x86@kernel.org, xen-devel@lists.xenproject.org, linux-pci@vger.kernel.org Subject: [PATCH] xen/pci: remove redundant assignment to variable irq Date: Thu, 9 Apr 2020 12:41:18 +0100 Message-Id: <20200409114118.249461-1-colin.king@canonical.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" From: Colin Ian King The variable irq is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King --- arch/x86/pci/xen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/pci/xen.c b/arch/x86/pci/xen.c index 91220cc25854..80272eb49230 100644 --- a/arch/x86/pci/xen.c +++ b/arch/x86/pci/xen.c @@ -63,7 +63,7 @@ static int xen_pcifront_enable_irq(struct pci_dev *dev) static int xen_register_pirq(u32 gsi, int gsi_override, int triggering, bool set_pirq) { - int rc, pirq =3D -1, irq =3D -1; + int rc, pirq =3D -1, irq; struct physdev_map_pirq map_irq; int shareable =3D 0; char *name; --=20 2.25.1