[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200630221249.GA3491219@bjorn-Precision-5520>
Date: Tue, 30 Jun 2020 17:12:49 -0500
From: Bjorn Helgaas <helgaas@...nel.org>
To: Colin King <colin.king@...onical.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@...cle.com>,
Bjorn Helgaas <bhelgaas@...gle.com>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>,
"H . Peter Anvin" <hpa@...or.com>, x86@...nel.org,
xen-devel@...ts.xenproject.org, linux-pci@...r.kernel.org,
kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org,
Juergen Gross <jgross@...e.com>,
Boris Ostrovsky <boris.ostrovsky@...cle.com>
Subject: Re: [PATCH] xen/pci: remove redundant assignment to variable irq
[+cc Juergen, Boris]
On Thu, Apr 09, 2020 at 12:41:18PM +0100, Colin King wrote:
> From: Colin Ian King <colin.king@...onical.com>
>
> 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 <colin.king@...onical.com>
Applied to pci/virtualization for v5.9, thanks!
I don't see this in linux-next yet, but if anybody else would prefer
to take it, let me know and I'll drop it.
> ---
> 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 = -1, irq = -1;
> + int rc, pirq = -1, irq;
> struct physdev_map_pirq map_irq;
> int shareable = 0;
> char *name;
> --
> 2.25.1
>
Powered by blists - more mailing lists