diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-07-21 13:40:10 +0200 |
---|---|---|
committer | Boris Ostrovsky <boris.ostrovsky@oracle.com> | 2021-07-21 18:40:45 +0200 |
commit | 83f877a09516bcb82e34df621cc3a794509a11a3 (patch) | |
tree | fe5f5a8977d7ab7db8c566bbafc2c564aa0627b6 /drivers/xen/events | |
parent | xen: sync include/xen/interface/io/ring.h with Xen's newest version (diff) | |
download | linux-83f877a09516bcb82e34df621cc3a794509a11a3.tar.xz linux-83f877a09516bcb82e34df621cc3a794509a11a3.zip |
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 <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>
Diffstat (limited to 'drivers/xen/events')
-rw-r--r-- | drivers/xen/events/events_base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/xen/events/events_base.c b/drivers/xen/events/events_base.c index d7e361fb0548..154daddbdcb4 100644 --- a/drivers/xen/events/events_base.c +++ b/drivers/xen/events/events_base.c @@ -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; |