OpenCloudOS-Kernel/net/9p
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
..
Kconfig 9p: add virtio transport 2007-10-23 13:47:31 -05:00
Makefile 9p: transport API reorganization 2008-02-06 19:25:03 -06:00
client.c 9p: transport API reorganization 2008-02-06 19:25:03 -06:00
conv.c [NET] 9p: kill dead static inline buf_put_string 2008-01-31 19:27:05 -08:00
error.c 9p: Reorganization of 9p file system code 2007-07-14 15:13:40 -05:00
fcprint.c 9p: fix p9_printfcall export 2008-02-06 19:25:01 -06:00
mod.c 9p: transport API reorganization 2008-02-06 19:25:03 -06:00
trans_fd.c 9p: transport API reorganization 2008-02-06 19:25:03 -06:00
trans_virtio.c net/9p/trans_virtio.c: Use BUG_ON 2008-02-17 18:42:53 -08:00
util.c 9p: Convert semaphore to spinlock for p9_idpool 2008-02-06 19:25:04 -06:00