android_kernel_xiaomi_sm8350/net
Julia Lawall d6584f3a08 net/9p/trans_virtio.c: 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:53 -08:00
..
9p net/9p/trans_virtio.c: Use BUG_ON 2008-02-17 18:42:53 -08:00
802
8021q
appletalk
atm
ax25 [AX25] ax25_ds_timer: use mod_timer instead of add_timer 2008-02-12 17:53:34 -08:00
bluetooth bluetooth rfcomm tty: destroy before tty_close() 2008-02-05 03:12:06 -08:00
bridge
can [CAN]: Minor clean-ups 2008-02-07 18:05:04 -08:00
core Revert "[NDISC]: Fix race in generic address resolution" 2008-02-17 18:39:54 -08:00
dccp
decnet [DECNET] ROUTE: remove unecessary alignment 2008-02-07 23:29:57 -08:00
econet
ethernet
ieee80211
ipv4 Revert "[NDISC]: Fix race in generic address resolution" 2008-02-17 18:39:54 -08:00
ipv6 [IPV6]: Fix reversed local_df test in ip6_fragment 2008-02-14 23:49:37 -08:00
ipx
irda
iucv [AF_IUCV]: defensive programming of iucv_callback_txdone 2008-02-07 18:07:44 -08:00
key [AF_KEY]: Fix bug in spdadd 2008-02-14 14:51:38 -08:00
lapb
llc
mac80211 mac80211: Fix initial hardware configuration 2008-02-15 13:44:19 -05:00
netfilter [NETFILTER] nf_conntrack_proto_tcp.c: Mistyped state corrected. 2008-02-14 14:50:21 -08:00
netlabel [NETLABLE]: Hide netlbl_unlabel_audit_addr6 under ifdef CONFIG_IPV6. 2008-02-12 22:38:06 -08:00
netlink [GENETLINK]: Relax dances with genl_lock. 2008-02-12 22:16:33 -08:00
netrom
packet
rfkill
rose
rxrpc net/rxrpc: Use BUG_ON 2008-02-17 18:42:03 -08:00
sched [PKT_SCHED] ematch: Fix build warning. 2008-02-10 03:48:15 -08:00
sctp [SCTP]: Convert sctp_dbg_objcnt to seq files. 2008-02-09 23:24:58 -08:00
sunrpc SUNPRC: Fix printk format warning 2008-02-10 18:11:22 -05:00
tipc [TIPC]: declare proto_ops structures as 'const'. 2008-02-07 18:18:01 -08:00
unix
wanrouter
wireless
x25
xfrm [XFRM]: Avoid bogus BUG() when throwing new policy away. 2008-02-14 14:52:38 -08:00
compat.c
Kconfig namespaces: mark NET_NS with "depends on NAMESPACES" 2008-02-08 09:22:23 -08:00
Makefile
nonet.c
socket.c [NET]: Make sure sockets implement splice_read 2008-02-15 02:35:45 -08:00
sysctl_net.c
TUNABLE