alpha: use BUG_ON where possible
authorSasha Levin <sasha.levin@oracle.com>
Thu, 8 Nov 2012 20:23:04 +0000 (15:23 -0500)
committerJiri Kosina <jkosina@suse.cz>
Thu, 8 Nov 2012 21:42:02 +0000 (22:42 +0100)
commit8166ea07cb89208f6beb9aa6aed554250f150cc8
tree61819564104958cdb33a1130360b832600d6746b
parent926ccfef82413623ae0e5c3a32d0cad2b9f33e96
alpha: use BUG_ON where possible

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);
// </smpl>

Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
arch/alpha/kernel/pci_iommu.c