summaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorEric Sesterhenn <snakebyte@gmx.de>2006-03-24 18:35:26 +0100
committerAdrian Bunk <bunk@stusta.de>2006-03-24 18:35:26 +0100
commit5daf2cf19a7d03843d8d2d1b4aaf5260479cc5a7 (patch)
tree16047cbccaa718d0f120647d2a071edf2659239f /drivers/md
parent16538c40776b8be6b0f23966e08fdc7b8fff823f (diff)
downloadlinux-5daf2cf19a7d03843d8d2d1b4aaf5260479cc5a7.tar.bz2
BUG_ON() Conversion in md/bitmap.c
this changes if() BUG(); constructs to BUG_ON() which is cleaner and can better optimized away Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de> Signed-off-by: Adrian Bunk <bunk@stusta.de>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/bitmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/bitmap.c b/drivers/md/bitmap.c
index eae4473eadde..979e8cae5d83 100644
--- a/drivers/md/bitmap.c
+++ b/drivers/md/bitmap.c
@@ -1309,7 +1309,7 @@ int bitmap_startwrite(struct bitmap *bitmap, sector_t offset, unsigned long sect
case 1:
*bmc = 2;
}
- if ((*bmc & COUNTER_MAX) == COUNTER_MAX) BUG();
+ BUG_ON((*bmc & COUNTER_MAX) == COUNTER_MAX);
(*bmc)++;
spin_unlock_irq(&bitmap->lock);