diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-03-24 12:35:26 -0500 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2006-03-24 12:35:26 -0500 |
commit | 5daf2cf19a7d03843d8d2d1b4aaf5260479cc5a7 (patch) | |
tree | 16047cbccaa718d0f120647d2a071edf2659239f /drivers | |
parent | 16538c40776b8be6b0f23966e08fdc7b8fff823f (diff) |
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.c | 2 |
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 | |||
1309 | case 1: | 1309 | case 1: |
1310 | *bmc = 2; | 1310 | *bmc = 2; |
1311 | } | 1311 | } |
1312 | if ((*bmc & COUNTER_MAX) == COUNTER_MAX) BUG(); | 1312 | BUG_ON((*bmc & COUNTER_MAX) == COUNTER_MAX); |
1313 | (*bmc)++; | 1313 | (*bmc)++; |
1314 | 1314 | ||
1315 | spin_unlock_irq(&bitmap->lock); | 1315 | spin_unlock_irq(&bitmap->lock); |