summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShyam Saini <mayhs11saini@gmail.com>2016-12-24 14:22:46 +0530
committerJuergen Gross <jgross@suse.com>2017-01-03 14:37:39 +0100
commitf9751a60f17eb09e1d1bd036daaddc3ea3a8bed6 (patch)
treeaee3e72bf60592b59d8b9be7ee937ae7a8d82608
parent61033e089cde41464f820c8c381ce170d89470f0 (diff)
downloadlinux-stable-f9751a60f17eb09e1d1bd036daaddc3ea3a8bed6.tar.gz
linux-stable-f9751a60f17eb09e1d1bd036daaddc3ea3a8bed6.tar.bz2
linux-stable-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>
-rw-r--r--drivers/xen/events/events_fifo.c3
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);
}
/*