summaryrefslogtreecommitdiffstats
path: root/arch/tile
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2011-08-02 12:35:04 +0200
committerChris Metcalf <cmetcalf@tilera.com>2011-08-02 16:26:59 -0400
commitd1afa65ca59d4e6a5f1a8c1ab9bfa73f2fa8b777 (patch)
tree344d0a636d63614cf5cb2a85a2a7a2e37207d54a /arch/tile
parent3d071cd313643cf82b1ce1ce4fdf08d63ad53964 (diff)
downloadop-kernel-dev-d1afa65ca59d4e6a5f1a8c1ab9bfa73f2fa8b777.zip
op-kernel-dev-d1afa65ca59d4e6a5f1a8c1ab9bfa73f2fa8b777.tar.gz
arch/tile/mm/init.c: trivial: use BUG_ON
Use BUG_ON(x) rather than if(x) BUG(); The semantic patch that fixes this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ identifier x; @@ -if (x) BUG(); +BUG_ON(x); @@ identifier x; @@ -if (!x) BUG(); +BUG_ON(!x); // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'arch/tile')
-rw-r--r--arch/tile/mm/init.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/tile/mm/init.c b/arch/tile/mm/init.c
index 4e10c40..7309988c 100644
--- a/arch/tile/mm/init.c
+++ b/arch/tile/mm/init.c
@@ -836,8 +836,7 @@ void __init mem_init(void)
#endif
#ifdef CONFIG_FLATMEM
- if (!mem_map)
- BUG();
+ BUG_ON(!mem_map);
#endif
#ifdef CONFIG_HIGHMEM
OpenPOWER on IntegriCloud