summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/irq_32.c
diff options
context:
space:
mode:
authorJulia Lawall2008-04-29 09:59:12 +0200
committerLinus Torvalds2008-04-29 17:06:02 +0200
commit8d4b69002e56e93f1cfe8bb863846ecde3990032 (patch)
tree0cd18b3bebad5db8e20bd7d760513a9b980235be /arch/x86/kernel/irq_32.c
parentiomap: fix 64 bits resources on 32 bits (diff)
downloadkernel-qcow2-linux-8d4b69002e56e93f1cfe8bb863846ecde3990032.tar.gz
kernel-qcow2-linux-8d4b69002e56e93f1cfe8bb863846ecde3990032.tar.xz
kernel-qcow2-linux-8d4b69002e56e93f1cfe8bb863846ecde3990032.zip
fs/affs/file.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> Cc: Roman Zippel <zippel@linux-m68k.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/x86/kernel/irq_32.c')
0 files changed, 0 insertions, 0 deletions