diff options
author | Anup Limbu <anuplimbu14@gmail.com> | 2015-11-25 10:16:05 (GMT) |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2015-12-10 15:38:58 (GMT) |
commit | 86a49e2dac3064557d45850a9c63f7cc1e6fe041 (patch) | |
tree | 948f2638697bed78cccc449b7d053b4dacd19e7d /drivers/md | |
parent | 86bad0c7071c24efee0a395d8b622764bdd24320 (diff) | |
download | linux-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')
-rw-r--r-- | drivers/md/dm-bufio.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/md/dm-bufio.c b/drivers/md/dm-bufio.c index bccc7e6..6b832e0 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) |