lkml.org 
[lkml]   [2015]   [Nov]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] md: dm-bufio: Use BUG_ON instead of if BUG
Date
Use BUG_ON instead of if BUG

Signed-off-by: Anup Limbu <anuplimbu14@gmail.com>
---
drivers/md/dm-bufio.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/md/dm-bufio.c b/drivers/md/dm-bufio.c
index 2dd3308..788a905 100644
--- a/drivers/md/dm-bufio.c
+++ b/drivers/md/dm-bufio.c
@@ -1891,8 +1891,7 @@ static void __exit dm_bufio_exit(void)
bug = 1;
}

- if (bug)
- BUG();
+ BUG_ON(bug);
}

module_init(dm_bufio_init)
--
1.9.1


\
 
 \ /
  Last update: 2015-11-25 11:21    [W:0.046 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site