Julia Lawall b1f3550fa1 ocfs2: Use BUG_ON
if (...) BUG(); should be replaced with BUG_ON(...) when the test has no
side-effects to allow a definition of BUG_ON that drops the code completely.

The semantic patch that makes this change is as follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@ disable unlikely @ expression E,f; @@

(
  if (<... f(...) ...>) { BUG(); }
|
- if (unlikely(E)) { BUG(); }
+ BUG_ON(E);
)

@@ expression E,f; @@

(
  if (<... f(...) ...>) { BUG(); }
|
- if (E) { BUG(); }
+ BUG_ON(E);
)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
2008-04-18 08:56:11 -07:00
..
2008-04-18 08:56:09 -07:00
2008-04-18 08:56:11 -07:00
2007-10-16 09:42:58 -07:00
2008-01-25 14:45:34 -08:00
2008-03-03 15:50:21 -08:00
2007-10-12 11:54:38 -07:00
2008-01-25 15:05:44 -08:00
2007-04-26 15:10:40 -07:00
2008-01-25 15:05:43 -08:00
2008-01-25 15:05:44 -08:00
2008-04-18 08:56:11 -07:00
2008-01-25 14:46:01 -08:00
2008-04-18 08:56:11 -07:00
2008-02-03 17:33:42 +02:00
2008-04-18 08:56:07 -07:00
2008-04-18 08:56:07 -07:00
2008-04-18 08:56:07 -07:00
2007-05-07 12:12:51 -07:00
2008-01-25 15:05:46 -08:00