summaryrefslogtreecommitdiffstats
path: root/net/9p
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2008-02-18 03:42:03 +0100
committerDavid S. Miller <davem@davemloft.net>2008-02-18 03:42:03 +0100
commit163e3cb7daa8c3a6dde6a13a3d09a198930c6822 (patch)
tree67b22efc3a5e4ce904f0cc194b7dda92588b2cdd /net/9p
parentRevert "[NDISC]: Fix race in generic address resolution" (diff)
downloadlinux-163e3cb7daa8c3a6dde6a13a3d09a198930c6822.tar.xz
linux-163e3cb7daa8c3a6dde6a13a3d09a198930c6822.zip
net/rxrpc: 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>
Diffstat (limited to 'net/9p')
0 files changed, 0 insertions, 0 deletions