[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] xen: events: Replace BUG() with BUG_ON()



On 24/12/16 09:52, Shyam Saini wrote:
> Replace BUG() with BUG_ON() using coccinelle
> 
> Signed-off-by: Shyam Saini <mayhs11saini@xxxxxxxxx>

Reviewed-by: Juergen Gross <jgross@xxxxxxxx>

> ---
>  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);
>       }
>  
>       /*
> 


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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.