summaryrefslogtreecommitdiff
path: root/include/asm-powerpc
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2008-04-29 07:59:12 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-29 15:06:02 (GMT)
commit8d4b69002e56e93f1cfe8bb863846ecde3990032 (patch)
tree0cd18b3bebad5db8e20bd7d760513a9b980235be /include/asm-powerpc
parentb70d3a2c596fb52b02488ad4aef13fa0d602090c (diff)
downloadlinux-fsl-qoriq-8d4b69002e56e93f1cfe8bb863846ecde3990032.tar.xz
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 'include/asm-powerpc')
0 files changed, 0 insertions, 0 deletions