linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] md: dm-bufio: Use BUG_ON instead of if BUG
@ 2015-11-25 10:16 Anup Limbu
  0 siblings, 0 replies; only message in thread
From: Anup Limbu @ 2015-11-25 10:16 UTC (permalink / raw)
  To: agk, snitzer, dm-devel, neilb, linux-raid, linux-kernel; +Cc: Anup Limbu

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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-11-25 10:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-25 10:16 [PATCH] md: dm-bufio: Use BUG_ON instead of if BUG Anup Limbu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).