Julia Lawall d6584f3a08 net/9p/trans_virtio.c: 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: David S. Miller <davem@davemloft.net>
2008-02-17 18:42:53 -08:00
..
2008-02-17 18:42:53 -08:00
2008-02-07 18:05:04 -08:00
2008-02-14 14:51:38 -08:00
2008-02-03 17:55:45 +02:00
2008-01-28 15:02:44 -08:00
2008-02-17 18:42:03 -08:00
2008-02-10 18:11:22 -05:00
2008-01-28 15:10:48 -08:00
2008-01-28 14:54:10 -08:00
2008-01-28 14:56:29 -08:00
2005-04-16 15:20:36 -07:00