Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Colin Ian King and committed by
Bjorn Helgaas
1c026a18 b3a9e3b9

+1 -1
+1 -1
arch/x86/pci/xen.c
··· 62 62 #ifdef CONFIG_ACPI 63 63 static int xen_register_pirq(u32 gsi, int triggering, bool set_pirq) 64 64 { 65 - int rc, pirq = -1, irq = -1; 65 + int rc, pirq = -1, irq; 66 66 struct physdev_map_pirq map_irq; 67 67 int shareable = 0; 68 68 char *name;