Skip to content

Commit

Permalink
xen: events: Replace BUG() with BUG_ON()
Browse files Browse the repository at this point in the history
Replace BUG() with BUG_ON() using coccinelle

Signed-off-by: Shyam Saini <[email protected]>
Reviewed-by: Juergen Gross <[email protected]>
Signed-off-by: Juergen Gross <[email protected]>
  • Loading branch information
mystictot authored and jgross1 committed Jan 3, 2017
1 parent 61033e0 commit f9751a6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/xen/events/events_fifo.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,7 @@ static void evtchn_fifo_resume(void)
}

ret = init_control_block(cpu, control_block);
if (ret < 0)
BUG();
BUG_ON(ret < 0);
}

/*
Expand Down

0 comments on commit f9751a6

Please sign in to comment.