Re: [PATCH] alpha: use BUG_ON where possible
From: Jiri Kosina <hidden>
Date: 2012-11-08 21:42:54
Also in:
lkml
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