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
ar-connection.c
ar-connevent.c
ar-error.c
ar-input.c
ar-internal.h
ar-key.c
ar-local.c
ar-output.c
ar-peer.c
ar-proc.c
ar-recvmsg.c
ar-security.c
ar-skbuff.c
ar-transport.c
Kconfig
Makefile
rxkad.c