linux/net/rxrpc
Julia Lawall 163e3cb7da 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>
2008-02-17 18:42:03 -08:00
..
af_rxrpc.c Convert ERR_PTR(PTR_ERR(p)) instances to ERR_CAST(p) 2008-02-07 08:42:26 -08:00
ar-accept.c net/rxrpc: Use BUG_ON 2008-02-17 18:42:03 -08:00
ar-ack.c net/rxrpc: Use BUG_ON 2008-02-17 18:42:03 -08:00
ar-call.c [AF_RXRPC]: constify function pointer tables 2008-01-31 19:27:18 -08:00
ar-connection.c
ar-connevent.c
ar-error.c
ar-input.c
ar-internal.h [AF_RXRPC]: constify function pointer tables 2008-01-31 19:27:18 -08:00
ar-key.c
ar-local.c
ar-output.c
ar-peer.c
ar-proc.c [AF_RXRPC]: constify function pointer tables 2008-01-31 19:27:18 -08:00
ar-recvmsg.c
ar-security.c
ar-skbuff.c
ar-transport.c
Kconfig
Makefile
rxkad.c