summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Abraham <j.abraham1776@gmail.com>2018-09-12 15:13:54 -1000
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>2018-09-14 08:51:10 -0400
commit4dca864b59dd150a221730775e2f21f49779c135 (patch)
treec663e752bc3ced0831efe31e49beec042bffac35
parent3366cdb6d350d95466ee430ac50f3c8415ca8f46 (diff)
downloadlinux-4dca864b59dd150a221730775e2f21f49779c135.tar.gz
linux-4dca864b59dd150a221730775e2f21f49779c135.tar.bz2
linux-4dca864b59dd150a221730775e2f21f49779c135.zip
xen: fix GCC warning and remove duplicate EVTCHN_ROW/EVTCHN_COL usage
This patch removes duplicate macro useage in events_base.c. It also fixes gcc warning: variable ‘col’ set but not used [-Wunused-but-set-variable] Signed-off-by: Joshua Abraham <j.abraham1776@gmail.com> Reviewed-by: Juergen Gross <jgross@suse.com> Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
-rw-r--r--drivers/xen/events/events_base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/xen/events/events_base.c b/drivers/xen/events/events_base.c
index 08e4af04d6f2..e6c1934734b7 100644
--- a/drivers/xen/events/events_base.c
+++ b/drivers/xen/events/events_base.c
@@ -138,7 +138,7 @@ static int set_evtchn_to_irq(unsigned evtchn, unsigned irq)
clear_evtchn_to_irq_row(row);
}
- evtchn_to_irq[EVTCHN_ROW(evtchn)][EVTCHN_COL(evtchn)] = irq;
+ evtchn_to_irq[row][col] = irq;
return 0;
}