]> git.baikalelectronics.ru Git - kernel.git/commitdiff
xen: events: Replace BUG() with BUG_ON()
authorShyam Saini <mayhs11saini@gmail.com>
Sat, 24 Dec 2016 08:52:46 +0000 (14:22 +0530)
committerJuergen Gross <jgross@suse.com>
Tue, 3 Jan 2017 13:37:39 +0000 (14:37 +0100)
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>
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);
        }
 
        /*