summaryrefslogtreecommitdiff
path: root/drivers/md/dm-bufio.c
diff options
context:
space:
mode:
authorAnup Limbu <anuplimbu14@gmail.com>2015-11-25 13:16:05 +0300
committerMike Snitzer <snitzer@redhat.com>2015-12-10 18:38:58 +0300
commit86a49e2dac3064557d45850a9c63f7cc1e6fe041 (patch)
tree948f2638697bed78cccc449b7d053b4dacd19e7d /drivers/md/dm-bufio.c
parent86bad0c7071c24efee0a395d8b622764bdd24320 (diff)
downloadlinux-86a49e2dac3064557d45850a9c63f7cc1e6fe041.tar.xz
dm bufio: use BUG_ON instead of conditional call to BUG
Signed-off-by: Anup Limbu <anuplimbu14@gmail.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-bufio.c')
-rw-r--r--drivers/md/dm-bufio.c3
1 files changed, 1 insertions, 2 deletions
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)