summaryrefslogtreecommitdiffstats
path: root/drivers
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
parent16538c40776b8be6b0f23966e08fdc7b8fff823f (diff)
downloadop-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')
-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 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);
OpenPOWER on IntegriCloud