diff options
author | Anup Limbu <anuplimbu14@gmail.com> | 2015-11-25 13:16:05 +0300 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2015-12-10 18:38:58 +0300 |
commit | 86a49e2dac3064557d45850a9c63f7cc1e6fe041 (patch) | |
tree | 948f2638697bed78cccc449b7d053b4dacd19e7d /drivers/md/dm-bufio.c | |
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/dm-bufio.c')
-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 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) |