kernel_optimize_test/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 [RXRPC]: Use cpu_to_be32() where appropriate. 2008-01-28 14:58:04 -08:00
ar-connevent.c [AF_RXRPC]: Add an interface to the AF_RXRPC module for the AFS filesystem to use 2007-04-26 15:50:17 -07:00
ar-error.c [AF_RXRPC]: Sort out MTU handling. 2007-05-04 12:41:11 -07:00
ar-input.c [RXRPC]: Use cpu_to_be32() where appropriate. 2008-01-28 14:58:04 -08:00
ar-internal.h [AF_RXRPC]: constify function pointer tables 2008-01-31 19:27:18 -08:00
ar-key.c KEYS: Make request_key() and co fundamentally asynchronous 2007-10-17 08:42:57 -07:00
ar-local.c [NET]: Add the helper kernel_sock_shutdown() 2007-11-12 18:10:39 -08:00
ar-output.c [AF_RXRPC]: Return the number of bytes buffered in rxrpc_send_data() 2007-06-18 23:30:41 -07:00
ar-peer.c [NETNS]: Add namespace parameter to ip_route_output_key. 2008-01-28 15:11:07 -08:00
ar-proc.c [AF_RXRPC]: constify function pointer tables 2008-01-31 19:27:18 -08:00
ar-recvmsg.c [AF_RXRPC]: Add an interface to the AF_RXRPC module for the AFS filesystem to use 2007-04-26 15:50:17 -07:00
ar-security.c [AF_RXRPC]: Provide secure RxRPC sockets for use by userspace and kernel both 2007-04-26 15:48:28 -07:00
ar-skbuff.c [AF_RXRPC]: Add an interface to the AF_RXRPC module for the AFS filesystem to use 2007-04-26 15:50:17 -07:00
ar-transport.c Cleanup non-arch xtime uses, use get_seconds() or current_kernel_time(). 2007-07-25 10:09:20 -07:00
Kconfig [RXRPC]: Add missing select on CRYPTO 2007-11-30 23:30:40 +11:00
Makefile [AF_RXRPC]: Delete the old RxRPC code. 2007-04-26 15:55:48 -07:00
rxkad.c [RXRPC]: Use cpu_to_be32() where appropriate. 2008-01-28 14:58:04 -08:00