xen: events: Replace BUG() with BUG_ON()
authorShyam Saini <[email protected]>
Sat, 24 Dec 2016 08:52:46 +0000 (14:22 +0530)
committerJuergen Gross <[email protected]>
Tue, 3 Jan 2017 13:37:39 +0000 (14:37 +0100)
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]>
drivers/xen/events/events_fifo.c

index 7ef27c6ed72fb397167aaf86384da4adf947d6e6..71224abdd9f9d94cdf62efa074a5945ac0ffd048 100644 (file)
@@ -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);
        }
 
        /*