From e9a6aa8a0b7b93195774a9fcf551632bf3abcd97 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 12 Jun 2012 15:41:34 +0200 Subject: [PATCH] blk-mq: queue_for_each_ctx() typo 0 -> i Signed-off-by: Jens Axboe --- include/linux/blk-mq.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h index a6f6ae4b0782..c4dbe809ca7b 100644 --- a/include/linux/blk-mq.h +++ b/include/linux/blk-mq.h @@ -42,7 +42,7 @@ static inline struct blk_queue_ctx *blk_get_ctx(struct request_queue *q, int nr) } #define queue_for_each_ctx(q, ctx, i) \ - for (i = 0, ctx = &(q)->queue_ctx[0]; \ + for (i = 0, ctx = &(q)->queue_ctx[i]; \ i < (q)->nr_queues; i++, ctx++) \ #define blk_ctx_sum(q, sum) \ -- 2.25.1