diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-25 11:41:09 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-25 11:41:09 -0500 |
commit | 1e8c573933fd7975679766850252ad08667e5ca4 (patch) | |
tree | 9600d0c7ee5ea8925f3c4dc30680c819e0363805 /drivers/md | |
parent | d71eecf3b8e893757cc3dec560c96a32ac090890 (diff) | |
parent | 232443e2c90cc2930624dec89df327615b002c55 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/bunk/trivial
* git://git.kernel.org/pub/scm/linux/kernel/git/bunk/trivial: (21 commits)
BUG_ON() Conversion in drivers/video/
BUG_ON() Conversion in drivers/parisc/
BUG_ON() Conversion in drivers/block/
BUG_ON() Conversion in sound/sparc/cs4231.c
BUG_ON() Conversion in drivers/s390/block/dasd.c
BUG_ON() Conversion in lib/swiotlb.c
BUG_ON() Conversion in kernel/cpu.c
BUG_ON() Conversion in ipc/msg.c
BUG_ON() Conversion in block/elevator.c
BUG_ON() Conversion in fs/coda/
BUG_ON() Conversion in fs/binfmt_elf_fdpic.c
BUG_ON() Conversion in input/serio/hil_mlc.c
BUG_ON() Conversion in md/dm-hw-handler.c
BUG_ON() Conversion in md/bitmap.c
The comment describing how MS_ASYNC works in msync.c is confusing
rcu: undeclared variable used in documentation
fix typos "wich" -> "which"
typo patch for fs/ufs/super.c
Fix simple typos
tabify drivers/char/Makefile
...
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/bitmap.c | 2 | ||||
-rw-r--r-- | drivers/md/dm-hw-handler.c | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/drivers/md/bitmap.c b/drivers/md/bitmap.c index 670eb01a5a23..e1c18aa1d712 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); |
diff --git a/drivers/md/dm-hw-handler.c b/drivers/md/dm-hw-handler.c index 4cc0010e0156..baafaaba4d4b 100644 --- a/drivers/md/dm-hw-handler.c +++ b/drivers/md/dm-hw-handler.c | |||
@@ -83,8 +83,7 @@ void dm_put_hw_handler(struct hw_handler_type *hwht) | |||
83 | if (--hwhi->use == 0) | 83 | if (--hwhi->use == 0) |
84 | module_put(hwhi->hwht.module); | 84 | module_put(hwhi->hwht.module); |
85 | 85 | ||
86 | if (hwhi->use < 0) | 86 | BUG_ON(hwhi->use < 0); |
87 | BUG(); | ||
88 | 87 | ||
89 | out: | 88 | out: |
90 | up_read(&_hwh_lock); | 89 | up_read(&_hwh_lock); |