Skip to contentSkip to conversation

xen/events: remove redundant initialization of variable irq

PATCH Applied Colin King 3 participants 3 messages Jul 21, 2021

Subsystems (2)
lore
Share & tools
lore

Colin King

author
#0 lore raw

PATCH 1/1 xen/events: remove redundant initialization of variable irq

From: Colin Ian King <[email protected]>

The variable irq is being initialized with a value that is never read, it is being updated later on. The assignment is redundant and can be removed.

Addresses-Coverity: ("Unused value")

---
 drivers/xen/events/events_base.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/xen/events/events_base.c +1 -1
index d7e361fb0548..154daddbdcb4 100644
@@ -1009,7 +1009,7 @@ static void __unbind_from_irq(unsigned int irq)
 int xen_bind_pirq_gsi_to_irq(unsigned gsi,
 			     unsigned pirq, int shareable, char *name)
 {
-	int irq = -1;
+	int irq;
 	struct physdev_irq irq_op;
 	int ret;
 
Signature · 1 line
2.31.1