Skip to content

Commit 1c026a1

Browse files
Colin Ian Kingbjorn-helgaas
authored andcommitted
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/[email protected] Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]>
1 parent b3a9e3b commit 1c026a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/pci/xen.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ static int xen_pcifront_enable_irq(struct pci_dev *dev)
6262
#ifdef CONFIG_ACPI
6363
static int xen_register_pirq(u32 gsi, int triggering, bool set_pirq)
6464
{
65-
int rc, pirq = -1, irq = -1;
65+
int rc, pirq = -1, irq;
6666
struct physdev_map_pirq map_irq;
6767
int shareable = 0;
6868
char *name;

0 commit comments

Comments
 (0)