All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xen: events: Replace BUG() with BUG_ON()
@ 2016-12-24  8:52 Shyam Saini
  2017-01-02  5:09 ` Juergen Gross
  2017-01-03 13:40 ` Juergen Gross
  0 siblings, 2 replies; 3+ messages in thread
From: Shyam Saini @ 2016-12-24  8:52 UTC (permalink / raw)
  To: boris.ostrovsky; +Cc: jgross, xen-devel, david.vrabel, Shyam Saini

Replace BUG() with BUG_ON() using coccinelle

Signed-off-by: Shyam Saini <mayhs11saini@gmail.com>
---
 drivers/xen/events/events_fifo.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/xen/events/events_fifo.c b/drivers/xen/events/events_fifo.c
index c03f9c8..3c41470 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);
 	}
 
 	/*
-- 
2.7.4


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-01-03 13:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-24  8:52 [PATCH] xen: events: Replace BUG() with BUG_ON() Shyam Saini
2017-01-02  5:09 ` Juergen Gross
2017-01-03 13:40 ` Juergen Gross

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.