[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1422553582-4792-1-git-send-email-sudipm.mukherjee@gmail.com>
Date: Thu, 29 Jan 2015 23:16:22 +0530
From: Sudip Mukherjee <sudipm.mukherjee@...il.com>
To: Jens Axboe <axboe@...nel.dk>
Cc: Sudip Mukherjee <sudipm.mukherjee@...il.com>,
linux-kernel@...r.kernel.org
Subject: [PATCH] blk-mq: use BUG_ON()
use BUG_ON() instead of using if(condition) BUG()
Signed-off-by: Sudip Mukherjee <sudip@...torindia.org>
---
block/blk-mq.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/block/blk-mq.c b/block/blk-mq.c
index 8107962..d8f0922 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -337,8 +337,7 @@ EXPORT_SYMBOL(__blk_mq_end_request);
void blk_mq_end_request(struct request *rq, int error)
{
- if (blk_update_request(rq, error, blk_rq_bytes(rq)))
- BUG();
+ BUG_ON(blk_update_request(rq, error, blk_rq_bytes(rq)));
__blk_mq_end_request(rq, error);
}
EXPORT_SYMBOL(blk_mq_end_request);
--
1.8.1.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists