Thread (2 messages) 2 messages, 2 authors, 2012-11-08

Re: [PATCH] alpha: use BUG_ON where possible

From: Jiri Kosina <hidden>
Date: 2012-11-08 21:42:54
Also in: lkml

On Thu, 8 Nov 2012, Sasha Levin wrote:
Just use BUG_ON() instead of constructions such as:

	if (...)
		BUG()

A simplified version of the semantic patch that makes this transformation
is as follows: (http://coccinelle.lip6.fr/)

// <smpl>
@@
expression e;
@@
- if (e) BUG();
+ BUG_ON(e);
Ok, I guess I am just going to apply this one. Thanks,

-- 
Jiri Kosina
SUSE Labs
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help