Skip to content

Commit

Permalink
BUG_ON() Conversion in md/bitmap.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Sesterhenn authored and Adrian Bunk committed Mar 24, 2006
1 parent 16538c4 commit 5daf2cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/md/bitmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5daf2cf

Please sign in to comment.