Skip to content

Commit

Permalink
xen: fix GCC warning and remove duplicate EVTCHN_ROW/EVTCHN_COL usage
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Juergen Gross <[email protected]>
Signed-off-by: Boris Ostrovsky <[email protected]>
  • Loading branch information
jabedude authored and Boris Ostrovsky committed Sep 14, 2018
1 parent 3366cdb commit 4dca864
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 @@ -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;
}

Expand Down

0 comments on commit 4dca864

Please sign in to comment.