aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorJulia Lawall <[email protected]>2008-03-04 23:21:05 +0000
committerMark Fasheh <[email protected]>2008-04-18 15:56:11 +0000
commitb1f3550fa1471b691ad6c2f35b5b22e93eaa5855 (patch)
tree0d481a71d202883df116c55fdac4a4a60c4ca091 /net/unix/sysctl_net_unix.c
parentocfs2: Convert ocfs2 over to unlocked_ioctl (diff)
downloadkernel-b1f3550fa1471b691ad6c2f35b5b22e93eaa5855.tar.gz
kernel-b1f3550fa1471b691ad6c2f35b5b22e93eaa5855.zip
ocfs2: 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 <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Mark Fasheh <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions