Skip to content

Commit

Permalink
xen/events: remove redundant initialization of variable irq
Browse files Browse the repository at this point in the history
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 <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20210721114010.108648-1-colin.king@canonical.com
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
  • Loading branch information
Colin Ian King authored and Boris Ostrovsky committed Jul 21, 2021
1 parent 629a5d8 commit 83f877a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/xen/events/events_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 83f877a

Please sign in to comment.