diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-03-24 18:35:26 +0100 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2006-03-24 18:35:26 +0100 |
commit | 5daf2cf19a7d03843d8d2d1b4aaf5260479cc5a7 (patch) | |
tree | 16047cbccaa718d0f120647d2a071edf2659239f /drivers/md/bitmap.c | |
parent | 16538c40776b8be6b0f23966e08fdc7b8fff823f (diff) | |
download | op-kernel-dev-5daf2cf19a7d03843d8d2d1b4aaf5260479cc5a7.zip op-kernel-dev-5daf2cf19a7d03843d8d2d1b4aaf5260479cc5a7.tar.gz |
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/bitmap.c')
-rw-r--r-- | drivers/md/bitmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/bitmap.c b/drivers/md/bitmap.c index eae4473..979e8ca 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); |