Julia Lawall 21ac1f9934 sound: 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>
2008-04-24 12:00:22 +02:00
..
2008-01-31 17:29:48 +01:00
2008-04-24 12:00:09 +02:00
2008-01-31 17:29:48 +01:00
2008-04-24 12:00:22 +02:00
2008-01-31 17:29:48 +01:00
2008-01-31 17:29:48 +01:00
2008-01-31 17:29:48 +01:00
2008-01-31 17:29:48 +01:00
2008-01-31 17:29:48 +01:00
2008-04-24 12:00:15 +02:00
2007-02-09 09:03:54 +01:00
2008-01-31 17:29:48 +01:00
2007-05-21 09:18:19 -07:00