Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752344AbbKYKQR (ORCPT ); Wed, 25 Nov 2015 05:16:17 -0500 Received: from mail-pa0-f66.google.com ([209.85.220.66]:33452 "EHLO mail-pa0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752316AbbKYKQP (ORCPT ); Wed, 25 Nov 2015 05:16:15 -0500 From: Anup Limbu To: agk@redhat.com, snitzer@redhat.com, dm-devel@redhat.com, neilb@suse.com, linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Anup Limbu Subject: [PATCH] md: dm-bufio: Use BUG_ON instead of if BUG Date: Wed, 25 Nov 2015 15:46:05 +0530 Message-Id: <1448446565-15805-1-git-send-email-anuplimbu14@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 713 Lines: 29 Use BUG_ON instead of if BUG Signed-off-by: Anup Limbu --- drivers/md/dm-bufio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/md/dm-bufio.c b/drivers/md/dm-bufio.c index 2dd3308..788a905 100644 --- a/drivers/md/dm-bufio.c +++ b/drivers/md/dm-bufio.c @@ -1891,8 +1891,7 @@ static void __exit dm_bufio_exit(void) bug = 1; } - if (bug) - BUG(); + BUG_ON(bug); } module_init(dm_bufio_init) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/