diff options
author | Shyam Saini <mayhs11saini@gmail.com> | 2016-12-24 14:22:46 +0530 |
---|---|---|
committer | Juergen Gross <jgross@suse.com> | 2017-01-03 14:37:39 +0100 |
commit | f9751a60f17eb09e1d1bd036daaddc3ea3a8bed6 (patch) | |
tree | aee3e72bf60592b59d8b9be7ee937ae7a8d82608 /drivers/xen | |
parent | 61033e089cde41464f820c8c381ce170d89470f0 (diff) | |
download | linux-f9751a60f17eb09e1d1bd036daaddc3ea3a8bed6.tar.gz linux-f9751a60f17eb09e1d1bd036daaddc3ea3a8bed6.tar.bz2 linux-f9751a60f17eb09e1d1bd036daaddc3ea3a8bed6.zip |
xen: events: Replace BUG() with BUG_ON()
Replace BUG() with BUG_ON() using coccinelle
Signed-off-by: Shyam Saini <mayhs11saini@gmail.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Diffstat (limited to 'drivers/xen')
-rw-r--r-- | drivers/xen/events/events_fifo.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/xen/events/events_fifo.c b/drivers/xen/events/events_fifo.c index 7ef27c6ed72f..71224abdd9f9 100644 --- a/drivers/xen/events/events_fifo.c +++ b/drivers/xen/events/events_fifo.c @@ -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); } /* |