summaryrefslogtreecommitdiffstats
path: root/arch/x86/pci/xen.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-06-11 14:31:34 +0200
committerBjorn Helgaas <bhelgaas@google.com>2020-07-24 16:50:22 +0200
commit1c026a18d40bdd904d3ae1f7737cd08b376286d6 (patch)
treed5cd5a9a485b1d4d7ca0c620c93e832cb4c7e097 /arch/x86/pci/xen.c
parentLinux 5.8-rc1 (diff)
downloadlinux-1c026a18d40bdd904d3ae1f7737cd08b376286d6.tar.xz
linux-1c026a18d40bdd904d3ae1f7737cd08b376286d6.zip
xen: Remove redundant initialization of irq
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") Link: https://lore.kernel.org/r/20200611123134.922395-1-colin.king@canonical.com Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'arch/x86/pci/xen.c')
-rw-r--r--arch/x86/pci/xen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/pci/xen.c b/arch/x86/pci/xen.c
index e3f1ca316068..9f9aad42ccff 100644
--- a/arch/x86/pci/xen.c
+++ b/arch/x86/pci/xen.c
@@ -62,7 +62,7 @@ static int xen_pcifront_enable_irq(struct pci_dev *dev)
#ifdef CONFIG_ACPI
static int xen_register_pirq(u32 gsi, 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;