Re: [PATCH] ARM: integrator: use BUG_ON where possible

2012-11-17 Thread Linus Walleij
On Mon, Nov 12, 2012 at 9:44 PM, Arnd Bergmann wrote: >> Signed-off-by: Sasha Levin > > Linus Walleij is doing most of the integrator work these days, maybe he > wants to apply the patch. > > Acked-by: Arnd Bergmann OK I'll apply it to my stash and submit a pull request to simplify things. I

Re: [PATCH] ARM: integrator: use BUG_ON where possible

2012-11-12 Thread Arnd Bergmann
On Thursday 08 November 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/) > > // > @@ > expression e;

[PATCH] ARM: integrator: use BUG_ON where possible

2012-11-08 Thread Sasha Levin
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/) // @@ expression e; @@ - if (e) BUG(); + BUG_ON(e); // Signed-off-by: Sasha Levin -