Re: [PATCH] iaf_packet: use BUG_ON

From: David Miller
Date: Tue Jul 08 2014 - 19:22:13 EST


From: Himangi Saraogi <himangi774@xxxxxxxxx>
Date: Wed, 9 Jul 2014 03:50:23 +0530

> Use BUG_ON(x) rather than if(x) BUG();
>
> The semantic patch that fixes this problem is as follows:
>
> // <smpl>
> @@ identifier x; @@
> -if (x) BUG();
> +BUG_ON(x);
> // </smpl>
>
> Signed-off-by: Himangi Saraogi <himangi774@xxxxxxxxx>
> Acked-by: Julia Lawall <julia.lawall@xxxxxxx>

Please repost this with a proper subject line, correcting "iaf_packet".

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/