diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-10-03 23:33:23 +0200 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2006-10-03 23:33:23 +0200 |
commit | 52e5f9d1cf0b10b24317037dcd1c9be38ca7011c (patch) | |
tree | a0646ee04b91d5d195075dc4ad8d38cf603179d8 /drivers/md/md.c | |
parent | 70d63ccc71fe1a413ce82b88aa175b1dcf28654e (diff) | |
download | op-kernel-dev-52e5f9d1cf0b10b24317037dcd1c9be38ca7011c.zip op-kernel-dev-52e5f9d1cf0b10b24317037dcd1c9be38ca7011c.tar.gz |
BUG_ON cleanup for drivers/md/
This changes two if() BUG(); usages to BUG_ON(); so people
can disable it safely.
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r-- | drivers/md/md.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 38a0a57..cb82816 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -4438,8 +4438,7 @@ static int md_release(struct inode *inode, struct file * file) { mddev_t *mddev = inode->i_bdev->bd_disk->private_data; - if (!mddev) - BUG(); + BUG_ON(!mddev); mddev_put(mddev); return 0; |