projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58ef2c4
)
BUG_ON() Conversion in md/dm-target.c
author
Eric Sesterhenn
<snakebyte@gmx.de>
Fri, 31 Mar 2006 23:08:12 +0000
(
01:08
+0200)
committer
Adrian Bunk
<bunk@stusta.de>
Fri, 31 Mar 2006 23:08:12 +0000
(
01:08
+0200)
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>
drivers/md/dm-target.c
patch
|
blob
|
history
diff --git
a/drivers/md/dm-target.c
b/drivers/md/dm-target.c
index aecd9e0c2616b7ad0ec1881be502e501ddd9c731..64fd8e79ea4c9cd44b03c0973e2f1559afb96203 100644
(file)
--- a/
drivers/md/dm-target.c
+++ b/
drivers/md/dm-target.c
@@
-78,8
+78,7
@@
void dm_put_target_type(struct target_type *t)
if (--ti->use == 0)
module_put(ti->tt.module);
- if (ti->use < 0)
- BUG();
+ BUG_ON(ti->use < 0);
up_read(&_lock);
return;