diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-03-26 11:21:58 -0500 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2006-03-26 11:21:58 -0500 |
commit | c163c7293eb68bf6c0c824d122a2192b9f129193 (patch) | |
tree | e5f859a60d5eab86bfa3229257603ab889c13bda /drivers/md/dm-path-selector.c | |
parent | 6dd44a74469c203c5106ada2082c46267b4ac674 (diff) |
BUG_ON() Conversion in md/dm-path-selector.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/md/dm-path-selector.c')
-rw-r--r-- | drivers/md/dm-path-selector.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/md/dm-path-selector.c b/drivers/md/dm-path-selector.c index a28c1c2b4ef5..f10a0c89b3f4 100644 --- a/drivers/md/dm-path-selector.c +++ b/drivers/md/dm-path-selector.c | |||
@@ -86,8 +86,7 @@ void dm_put_path_selector(struct path_selector_type *pst) | |||
86 | if (--psi->use == 0) | 86 | if (--psi->use == 0) |
87 | module_put(psi->pst.module); | 87 | module_put(psi->pst.module); |
88 | 88 | ||
89 | if (psi->use < 0) | 89 | BUG_ON(psi->use < 0); |
90 | BUG(); | ||
91 | 90 | ||
92 | out: | 91 | out: |
93 | up_read(&_ps_lock); | 92 | up_read(&_ps_lock); |