xen/events: remove redundant initialization of variable irq
Subsystems (2)
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
@@ -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
Quoted 8 lines · Colin King
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")
Signed-off-by Colin Ian King <[email protected]>
Juergen
Boris Ostrovsky
AppliedQuoted 11 lines · Juergen Gross
Quoted 8 lines · Colin King
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")
Signed-off-by Colin Ian King <[email protected]>Reviewed-by Juergen Gross <[email protected]>
Applied to for-linus-5.14
-boris