From: Anup Limbu Date: Wed, 25 Nov 2015 10:16:05 +0000 (+0530) Subject: dm bufio: use BUG_ON instead of conditional call to BUG X-Git-Tag: v4.5-rc1~148^2~12 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=86a49e2dac3064557d45850a9c63f7cc1e6fe041;p=karo-tx-linux.git dm bufio: use BUG_ON instead of conditional call to BUG Signed-off-by: Anup Limbu Signed-off-by: Mike Snitzer --- diff --git a/drivers/md/dm-bufio.c b/drivers/md/dm-bufio.c index bccc7e6903e4..6b832e06580d 100644 --- a/drivers/md/dm-bufio.c +++ b/drivers/md/dm-bufio.c @@ -1928,8 +1928,7 @@ static void __exit dm_bufio_exit(void) bug = 1; } - if (bug) - BUG(); + BUG_ON(bug); } module_init(dm_bufio_init)