Tag: f7a9b36517d38cfa2213a346b154d2d7046ff223

ARM: integrator: use BUG_ON where possible

Author: Sasha Levin <sasha.levin@oracle.com> 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 Acked-by: Arnd Bergmann Signed-off-by: Linus Walleij — arch/arm/mach-integrator/pci_v3.c | 9 …

Continue reading