android_kernel_xiaomi_sm8350/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
ar-error.c
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
ar-local.c
ar-output.c
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
ar-security.c
ar-skbuff.c
ar-transport.c
Kconfig
Makefile
rxkad.c [RXRPC]: Use cpu_to_be32() where appropriate. 2008-01-28 14:58:04 -08:00