diff options
author | Anup Limbu <anuplimbu14@gmail.com> | 2015-11-25 15:46:05 +0530 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2015-12-10 10:38:58 -0500 |
commit | 86a49e2dac3064557d45850a9c63f7cc1e6fe041 (patch) | |
tree | 948f2638697bed78cccc449b7d053b4dacd19e7d /drivers | |
parent | 86bad0c7071c24efee0a395d8b622764bdd24320 (diff) | |
download | lwn-86a49e2dac3064557d45850a9c63f7cc1e6fe041.tar.gz lwn-86a49e2dac3064557d45850a9c63f7cc1e6fe041.zip |
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')
-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) |