diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-03-26 18:21:58 +0200 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2006-03-26 18:21:58 +0200 |
commit | c163c7293eb68bf6c0c824d122a2192b9f129193 (patch) | |
tree | e5f859a60d5eab86bfa3229257603ab889c13bda /drivers/md | |
parent | 6dd44a74469c203c5106ada2082c46267b4ac674 (diff) | |
download | linux-3.10-c163c7293eb68bf6c0c824d122a2192b9f129193.tar.gz linux-3.10-c163c7293eb68bf6c0c824d122a2192b9f129193.tar.bz2 linux-3.10-c163c7293eb68bf6c0c824d122a2192b9f129193.zip |
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')
-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 a28c1c2b4ef..f10a0c89b3f 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) if (--psi->use == 0) module_put(psi->pst.module); - if (psi->use < 0) - BUG(); + BUG_ON(psi->use < 0); out: up_read(&_ps_lock); |