Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1277154 > unrolled thread

[PATCH] md: dm-bufio: Use BUG_ON instead of if BUG

Started byAnup Limbu <anuplimbu14@gmail.com>
First post2015-11-25 11:20 +0100
Last post2015-11-25 11:20 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] md: dm-bufio: Use BUG_ON instead of if BUG Anup Limbu <anuplimbu14@gmail.com> - 2015-11-25 11:20 +0100

#1277154 — [PATCH] md: dm-bufio: Use BUG_ON instead of if BUG

FromAnup Limbu <anuplimbu14@gmail.com>
Date2015-11-25 11:20 +0100
Subject[PATCH] md: dm-bufio: Use BUG_ON instead of if BUG
Message-ID<qyFl7-4Se-3@gated-at.bofh.it>
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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web