diff options
author | Julia Lawall <julia@diku.dk> | 2008-04-29 09:59:12 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-29 17:06:02 +0200 |
commit | 8d4b69002e56e93f1cfe8bb863846ecde3990032 (patch) | |
tree | 0cd18b3bebad5db8e20bd7d760513a9b980235be /arch/sh/kernel/irq.c | |
parent | iomap: fix 64 bits resources on 32 bits (diff) | |
download | linux-8d4b69002e56e93f1cfe8bb863846ecde3990032.tar.xz 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/sh/kernel/irq.c')
0 files changed, 0 insertions, 0 deletions