Skip to content

Commit 83f877a

Browse files
Colin Ian Kingbostrovs
authored andcommitted
xen/events: remove redundant initialization of variable irq
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") Signed-off-by: Colin Ian King <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Juergen Gross <[email protected]> Signed-off-by: Boris Ostrovsky <[email protected]>
1 parent 629a5d8 commit 83f877a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/xen/events/events_base.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,7 @@ static void __unbind_from_irq(unsigned int irq)
10091009
int xen_bind_pirq_gsi_to_irq(unsigned gsi,
10101010
unsigned pirq, int shareable, char *name)
10111011
{
1012-
int irq = -1;
1012+
int irq;
10131013
struct physdev_irq irq_op;
10141014
int ret;
10151015

0 commit comments

Comments
 (0)