Skip to contentSkip to conversation

md: dm-bufio: Use BUG_ON instead of if BUG

PATCH New Anup Limbu 1 participant 1 message Nov 25, 2015

Subsystems (2)
lore
Share & tools
lore

Anup Limbu

author
#0 lore raw

PATCH 1/1 md: dm-bufio: Use BUG_ON instead of if BUG

Use BUG_ON instead of if BUG

---
 drivers/md/dm-bufio.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/md/dm-bufio.c +1 -2
index 2dd3308..788a905 100644
@@ -1891,8 +1891,7 @@ static void __exit dm_bufio_exit(void)
 		bug = 1;
 	}
 
-	if (bug)
-		BUG();
+	BUG_ON(bug);
 }
 
 module_init(dm_bufio_init)
Signature · 1 line
1.9.1